1. 安装: sun-java6-jdk
2. 下载 Android SDK linux版(http://developer.android.com)
3. 运行 Android SDK tools目录下的"Android"程序,以更新获取相关platform模块(例如1.6Platform)
这一步需要注意的是:默认的站点为https协议,如果连接失败,改为http协议
4. 安装eclipse(3.4或以上版本)
5. eclipse ADT 安装
- Start Eclipse, then select Help > Install New Software .
- In the Available Software dialog, click Add... .
- In the Add Site dialog that appears, enter a name for the remote site
(for example, "Android Plugin") in the "Name" field.
In the "Location" field, enter this URL:
https : //dl-ssl.google.com/android/eclipse/
Note: If you have trouble acquiring the plugin, you can try using "http" in the URL, instead of "https" (https is preferred for security reasons).
Click OK .
- Back in the Available Software view, you should now see "Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next .
- In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish .
- Restart Eclipse.
6. Android NDK
下载NDK,将自己的工程放在apps目录下即可
编译时在NDK目录下"make APP=工程名"