- JDK安装,JRE安装.
- 相关软件下载.
- Eclipse IDE:http://www.eclipse.org/downloads/
- Android SDK:http://developer.android.com/sdk
- Android Development Tools plugin:eclipse在线安装.
3. 安装Android SDK
- 将下载的文件android-sdk_r11-linux_x86.tgz解压缩到/opt/androidSDK目录
- sudo gedit /etc/environment
- PATH=$PATH:/opt/androidSDK/tools
4. 安装Eclipse IDE和Android Development Tools plugin
- sudo apt-get install eclipse,启动eclipse.
- 选择Help > Software Updates....,进入Available Software标签,点击Add Site...按钮后,输入 https://dl-ssl.google.com/android/eclipse/
- 提示错误信息:
Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220) Missing requirement: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220) requires 'org.eclipse.gef 0.0.0' but it could not be found
- 打开eclipse:windows->preferences->Install/Update->Avai..., 选中或添加以下两个网址:
- GEF Update Site : http://download.eclipse.org/tools/gef/updates/releases
- galileo : http://download.eclipse.org/releases/galileo
- 进入help->Install new software,先选择GEF进行升级,(应该只升级对应版本即可)
- 再升级WST,这个在galileo的最后面。
5. 配置eclipse
- 选择Window > Preferences...打开Preferences窗口,在左边选择Android,在SDK Location处点击Browse按钮后,选择Adroid SDK的安装地址后,点OK完成设置。