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

这段时间刚开始学习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.
    1. 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
    2. Next, install Java:
      apt-get install sun-java6-jdk
    3. 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.
    4. Follow the steps given in previous sections to install the SDK and the ADT plugin.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值