您的位置:首页 > 编程语言 > Java开发

【android开发】ubuntu下使用Eclipse开发android的几个问题

2011-12-19 15:03 507 查看
这段时间刚开始学习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:

https://help.ubuntu.com/community/Java

https://help.ubuntu.com/community/JavaInstallation

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 using 
apt-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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐