这段时间刚开始学习linux,安装了个ubuntu10,在这个系统上用Eclipse学习android开发。
1.ubuntu下安装Eclipse:
sudo apt-get install eclipse得下来的Eclipse版本是3.7(Indigo)。
新版本的ubuntu已经很贴心了,
这个步骤没有碰到什么环境配置的问题,如果碰到了可以google下。
2.Android SDK:
http://developer.android.com/sdk/installing.html#troubleshooting
按照这个网页说明,安装Android SDK:
以下页面下载SDK管理工具:
http://developer.android.com/sdk/index.html
下载linux版本,解压缩,运行,选择下载SDK版本。
3.下载Eclipse的ADT插件:
按照这个网址一步步来:http://developer.android.com/sdk/eclipse-adt.html#installing
这里碰到一个问题:可能是最新的16.0.1版本的ADT需要用到Eclipse新版本的某些插件,
因此,需要在Help -> Install New Software... 添加Eclipse的更新下载网址http://download.eclipse.org/releases/indigo
否则ADT将下载不成功。
下载成功后,设置好SDK,重启Eclipse发现adb出错,在StackOverFlow.com里面搜索了一下,找到原因。
发现是因为我系统是64位的,而google提供的adt是32位的。运行以下命令即可解决:
sudo apt-get install ia32-libs
之后,便可以在敞开了进行android开发了:)
总结:
StackOverFlow是个好网站。
------------------------------------------------
ps:发现以上提到的问题,在Android官网上均有体现,如下--官网资料还是要好好看滴!!
Troubleshooting
Ubuntu Linux Notes
- If you need help installing and configuring Java on your development machine, you might find these resources helpful:
- Here are the steps to install Java and Eclipse, prior to installing the Android SDK and ADT Plugin.
- If you are running a 64-bit distribution on your development machine, you need to install the
ia32-libs
package usingapt-get:
:apt-get install ia32-libs
- Next, install Java:
apt-get install sun-java6-jdk
- The Ubuntu package manager does not currently offer an Eclipse 3.3 version for download, so we recommend that you download Eclipse from eclipse.org (http://www.eclipse.org/ downloads/). A Java or RCP version of Eclipse is recommended.
- Follow the steps given in previous sections to install the SDK and the ADT plugin.
- If you are running a 64-bit distribution on your development machine, you need to install the