Ubuntu下Gradle环境配置
sudo gedit ~/.profile
sudo source ~/.profile
env
# for java export JAVA_HOME=/home/cmm/jdk export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:/home/cmm/android-sdk-linux/tools:/home/cmm/android-sdk-linux/platform-tools export ANDROID_SDK_HOME=/home/cmm/avds # for go #export GOROOT="/home/cmm/go" #export GOBIN= $GOROOT/bin #export GOPATH="/home/cmm/work" #export PATH=$PATH:$GOPATH/bin export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH" export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH" export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH" #for gradle export GRADLE_HOME=/home/cmm/.gradle/wrapper/dists/gradle-5.1-bin/djumv4jisrix1ndp1lfpceh59/gradle-5.1 export PATH=$GRADLE_HOME/bin:$PATH