1. 安装JDKlinux
tar或GUI解压jdk-8u25-linux-i586.tar.gzandroid
编辑/etc/environment文件app
CLASSPATH="/home/zhouwei/jdk1.8.0_25/lib:."
JAVA_HOME="/home/zhouwei/jdk1.8.0_25"eclipse
PATH增长:/home/zhouwei/jdk1.8.0_25/binide
2. 安装ADT Bundle for Linuxgoogle
unzip或GUI解压adt-bundle-linux-x86-20140702.ziporm
在/etc/environment中增长路径:ip
/home/zhouwei/adt-bundle-linux-x86-20140702/sdk/platform-tools:/home/zhouwei/adt-bundle-linux-x86-20140702/sdk/toolsssl
建立/usr/share/applications/eclipse.desktop文件io
[Desktop Entry]
Version=1.0
Type=Application
Name=eclipse
Name[zh_CN]=eclipse
Comment=eclipse
Comment[zh_CN]=eclipse
Exec=/home/zhouwei/adt-bundle-linux-x86-20140702/eclipse/eclipse
Icon=/home/zhouwei/adt-bundle-linux-x86-20140702/eclipse/icon.xpm
Terminal=false
3. 安装NDK
chmod u+x android-ndk-r10d-linux-x86.bin
运行android-ndk-r10d-linux-x86.bin解压缩
在/etc/environment中增长路径:
/home/zhouwei/android-ndk-r10d
4. 为eclipse安装NDK路径补丁
复制com.android.ide.eclipse.ndk_23.0.2.1259578.jar到/home/zhouwei/adt-bundle-linux-x86-20140702/eclipse/plugins
5. 经过Android SDK Manager下载Android SDK
编辑/etc/hosts,提升下载速度
203.208.46.146 dl-ssl.google.com
203.208.46.146 dl.google.com
Android SDK Manager->Tools->Options, Force https打勾
6. 启动eclipse,配置ADK和NDK路径
最后个人/etc/environment文件内容以下:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/zhouwei/jdk1.8.0_25/bin:/home/zhouwei/adt-bundle-linux-x86-20140702/sdk/platform-tools:/home/zhouwei/adt-bundle-linux-x86-20140702/sdk/tools:/home/zhouwei/android-ndk-r10d"CLASSPATH="/home/zhouwei/jdk1.8.0_25/lib:."JAVA_HOME="/home/zhouwei/jdk1.8.0_25"