https://gradle.org/install/
1.下载对应的二进制文件(下载地址:https://gradle.org/releases/)
2.随便找个目录放置解压后的文件夹
例如:/Users/cairongxiang/myDeskTop/gradle/gradle-7.1
3.配置环境变量
终端执行命令:vim ~/.zshrc
输入该行内容:export PATH=/Users/cairongxiang/myDeskTop/gradle/gradle-7.1/bin:$PATH
终端执行命令:source ~/.bash_profile
4.终端执行命令 gradle -v 查看提示信息
链接:https://www.jianshu.com/p/9474c30bcd97
标签:执行命令,Users,cairongxiang,gradle,mac,https,PATH,安装 From: https://www.cnblogs.com/xyarch/p/16910611.html