安装 gradle brew install gradle 配置Path环境 vim .bash_profile // 写入 export PATH="${PATH}:/usr/local/Cellar/gradle/5.4.1/bin" 检查 gradle -v 我的成功,显示如下: