ubuntu配置android開發所需環境變數
阿新 • • 發佈:2019-02-10
################ CUSTOM SETTING BEGIN ####################
#set jdk path
export JAVA_HOME=/usr/lib/jdk/jdk1.7.0_45
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin:$PATH
#set path for android sdk tools
export ANDROID_HOME=/home/xiaoyee/tools/sdk
export PATH=$PATH:${ANDROID_HOME}/tools
export PATH=${ANDROID_HOME}/platform-tools:$PATH
#set gradle path
export GRADLE_HOME=/home/xiaoyee/tools/gradle/gradle-2.2.1
export PATH=${GRADLE_HOME}/bin:$PATH
################ CUSTOM SETTING END ######################
NOTE:
JAVA_HOME,ANDROID_HOME,GRADLE_HOME根據自身情況設定