ubuntu 安装eclipse,adt,android sdk,离线
1.安装jdk
环境变量
$ sudo gedit ~/.bashrc
export JAVA_HOME=/usr/local/jdk1.8.0_65
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
sudo update-alternatives --install /usr/bin/java java /usr/local/jdk1.8.0_65/bin/java 300
sudo update-alternatives --install /usr/bin/javac javac /usr/local/jdk1.8.0_65/bin/javac 300
sudo update-alternatives --install /usr/bin/jar jar /usr/local/jdk1.8.0_65/bin/jar 300
sudo update-alternatives --install /usr/bin/javah javah /usr/local/jdk1.8.0_65/bin/javah 300
sudo update-alternatives --install /usr/bin/javap javap /usr/local/jdk1.8.0_65/bin/javap 300
sudo update-alternatives --config java
2.安装Eclipse
eclipse下载后解压就可以运行,无需安装
3.ADT插件
下载ADT-23.0.6.zip ,启动Eclipse,然后选择Help>Install New Software ,选择ADT-23.0.6.zip 安装
4.android sdk
启动Eclipse,选择window>preferences,点左侧的android,然后在右侧Browse 选择SDK location(也即选择android-sdk-linux)的位置,点确定
http://www.linuxidc.com/Linux/2015-01/111958.htm。