2,在终端中运行vim ~/.bash_profile
2. 按下i,显示insert,进入输入模式
GRADLE_HOME=/Users/q/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/gradle-3.3
export GRADLE_HOME
export PATH=$PATH:/Users/q/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/gradle-3.3/bin/
4. 按ESC,进入保存
输入 :wq! 保存
在终端中运行source ~/.bash_profile,使刚才的配置生效