Ubuntu配置android环境
jdk:http://www.oracle.com/technetwork/cn/java/javase/downloads/index.html
安装JDK的步骤:http://jingyan.baidu.com/article/c33e3f48a3365dea15cbb5c9.html
android studio:http://developer.android.com/sdk/index.html#Other
Linux 32 Bit Libraries
sudo apt-get update &&sudo apt-get upgrade
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
unzip studio.zip
sudo tar -C /usr/lib/jvm -xzf jdk*.tar.gz
//更改/opt/android-studio/bin/studio.sh,将jdk路径添加到脚本中,这样在运行时studio.sh时就不会提示找不到jdk路径了
// JDK_HOME="/opt/jdk1.8.0_25"
vim .bashrc
{
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_73
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
}
//更改 /opt/android-studio/bin/idea.porperties,
// 在最后一行添加
// disable.android.first.run=true
// 这样就可以避免运行时一直卡在开始的"Fetching Android SDK component information"(伟大的祖国将google拒之门外)
更改~/.bashrc 最后加上
alias android='/home/kaliplayer/workSpace/android-studio/bin/studio.sh'
重启terminate