Android_4.0.X 必备:
Java 1.6 或更高版本
Android SDK
Eclipse Helios (Version 3.6.2) 或更高版本
ADT 18.0.0
Download:
Java 1.6
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
必需的包(Ubuntu 10.04 -- 11.10)
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils xsltproc
On Ubuntu 10.10:
$ sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
On Ubuntu 11.10:
$ sudo apt-get install libx11-dev:i386
必需的包(Ubuntu 12.04)
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 \
g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown \
libxml2-utils xsltproc zlib1g-dev:i386 libxext-dev:i386
注:安装完成需配置 PATH, : sudo gedit ~/.bashrc
拷贝以下内容,根据当前linux(ubuntu)去设置相关的路径,这里设置了 ndk 与 sdk 的环境路径, java 没有设置, 拷到 ~/.bashrc 最后,
export NDK_PATH=/work/tools/android-ndk-r7
export ANDROID_PATH=/home/xiaopang/work/android-sdk-linux_x86
export PATH=$PATH:$NDK_PATH:$ANDROID_PATH/platform-tools:$ANDROID_PATH/tools:$ANDROID_PATH
保存后重启或 source ~/.bashrc 或 . ~/.bashrc ,PATH 环境就会更新到当前的 shell中
Android SDK:
Platform Package Size MD5 Checksum Windows android-sdk_r18-windows.zip 37448775 bytes bfbfdf8b2d0fdecc2a621544d706fa98 installer_r18-windows.exe (Recommended) 37456234 bytes 48b1fe7b431afe6b9c8a992bf75dd898 Mac OS X (intel) android-sdk_r18-macosx.zip 33903758 bytes 8328e8a5531c9d6f6f1a0261cb97af36 Linux (i386) android-sdk_r18-linux.tgz 29731463 bytes 6cd716d0e04624b865ffed3c25b3485c
Eclipse Helios:
Windows 32-bit Windows 64-bit Mac OS x(Cococa 32) Mac OS x(Cococa 64) Linux 32-bit Linux 64-bit
ADT 18.0.0:
Name Package Size MD5 Checksum ADT 18.0.0 ADT-18.0.0.zip 12834793 bytes b446fa157ed97af79d1e21629201efbb
在Eclipse 中下载 ADT 插件:
1.Start Eclipse, then select Help > Install New Software....
2.Click Add, in the top-right corner.
3.In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the
https://dl-ssl.google.com/android/eclipse/
4.Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https"
5.In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
6.In the next window, you'll see a list of the tools to be downloaded. Click Next.
7.Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, clickOK.
8.When the installation completes, restart Eclipse.
更新 SDK 包
Tools 与 Android 4.0.3(API15)
Create AVD
Start AVD
到这步说明成功了
Android_4.0.X 环境搭建到此完成