mac下android studio安装plantuml插件

mac下android studio安装plantuml插件

安装plantUML插件

打开设置面板,找到插件

搜索 plantUML

我已经安装过了,界面不太一样,点instanll安装就行,然后重启studio。
但是此时还不能使用,需要安装Graphviz

安装Graphviz

1、打开终端
2、如果已经安装过homebrew ,直接看第四步
3、安装homebrew,在终端运行一下命令

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

4、安装Graphviz
homebrew安装完毕后在终端运行命令

```
brew install graphviz
```

如果运行中可能会报错,可能是网络远程连接问题
去官网https://graphviz.gitlab.io/_pages/Download/Download_source.html下载资源包

再次行命令

 brew install graphviz

配置android studio

1.打开设置
2.找到Other Settings下的PlantUML,设置路径。

官网提供的地址是:/usr/local/bin/dot

使用


创建一个类图,如果出现

就成功了。
至于语法问题,请看下面

http://archive.3zso.com/archives/plantuml-quickstart.html#sec-5-4-1

猜你喜欢

转载自blog.csdn.net/weixin_42710085/article/details/81457295