Ubuntu下配置android环境
Ubuntu下配置android环境
1.JDK
配置JAVA_HOME环境
sudo vim /etc/profile
export JAVA_HOME=/usr/lib/jdk1.8.0_45(注:JDK的根目录)
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
最后一定要输入命令:sudo source /etc/profile 使其生效
2.android-sdk
参考:http://blog.csdn.net/catoop/article/details/7618099
配置ANDROID_HOME环境
export ANDROID_HOME=/opt/softwaretools/android-sdk-linux(注:SDK的根目录)
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH
3.Eclipse + ADT