vi ~/.bash_profile #GRADLE GRADLE_HOME=/Users/qinxy/software/gradle-4.9 PATH=$PATH:$GRADLE_HOME/bin export GRADLE_HOME GRADLE_USER_HOME PATH
vi ~/.bash_profile
#GRADLE GRADLE_HOME=/Users/qinxy/software/gradle-4.9 PATH=$PATH:$GRADLE_HOME/bin export GRADLE_HOME GRADLE_USER_HOME PATH
source ~/.bash_profile
gradle -v
Mac配置Gradle环境变量
原文:https://www.cnblogs.com/it-Ren/p/14771433.html