mac配置gradle环境变量
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 -version
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 -version