eclipse 安装 android ADT

 

Did you go through this Installing the ADT Plugin?

  1. Start Eclipse, then select Help > Install New Software.

  2. In the Available Software dialog, click Add....1.

  3. In the Add Site dialog that appears, enter a name for the remote site (for example, "Android Plugin") in the "Name" field.2.

  4. In the "Location" field, enter this URL: https://dl-ssl.google.com/android/eclipse/3.

  5. 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).4.

  6. Click OK.

  7. Back in the Available Software view, you should now see "Developer Tools" added to the list.6.

  8. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools.7.

  9. Click Next.8.

  10. In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed.9.

  11. Click Next to read and accept the license agreement and install any dependencies, then click Finish. Restart Eclipse.10.

This problem is caused because you have some plugins missing that are required by android tools. You can fix this by either installing a version of Eclipse which comes bundled with a lot of the eclipse plugins, or by tracking down the plugins yourself.

To do this, run eclipse, and go to Help->Install New software. Attempt to install the Android SDk, and you will be informed of what is missing, e.g:

*Missing requirement: Android Development Tools 0.9.6.v201002051504-24846 (com.android.ide.eclipse.adt.feature.group 0.9.6.v201002051504-24846) requires *'org.eclipse.gef 0.0.0' but it could not be found

So we need to install org.eclipse.gef . A quick Google for org.eclipse.gef, gives us www.eclipse.org/gef Follow the link, and on the left hand side you will see a link for "Update Manger", follow that link...

You then have a list of URI's similar to the one for the Android plugin. Copy the one ending in "releases"(http://download.eclipse.org/tools/gef/updates/releases/ if you can't be bothered ), and go back to eclipse. Paste this URI into the "Work with" box, as you did with the Android plugin, and install the components that come up.

Continue to do this until all of the Android dependencies are met, and the Android plugin will install. You will need to locate the correct locations for each of the required dependencies.

 

 

 

 

昨天转发了一篇文章,自己按照上面说的方法安装环境之后,在安装ADT时总会跳 出错误:


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


查了好多帖子也不能解决,最后在一个帖子上说要先安装GEF和WST,我抱着死 马当成活马医的心态试了试,结果成了!


打开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的最后面,耐心找一下吧,而且galileo加载也会很慢,稍等即可。


期间按照提示,选择重启或OK,应该会很顺利地。



最后 安装好了,建一个helloandroid试试,建个2.2的avd,以下是test结果


 

[2010-09-04 09:55:56 - HelloAndroid] ------------------------------

[2010-09-04 09:55:56 - HelloAndroid] Android Launch!

[2010-09-04 09:55:56 - HelloAndroid] adb is running normally.

[2010-09-04 09:55:56 - HelloAndroid] Performing miumiu.helloAndroid.helloAndroid activity launch

[2010-09-04 09:55:56 - HelloAndroid] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'android2.2'

[2010-09-04 09:55:56 - HelloAndroid] WARNING: Application does not specify an API level requirement!

[2010-09-04 09:55:56 - HelloAndroid] Device API version is 8 (Android 2.2)

[2010-09-04 09:56:02 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'

[2010-09-04 09:56:02 - HelloAndroid] Installing HelloAndroid.apk...

[2010-09-04 09:56:40 - HelloAndroid] Success!

[2010-09-04 09:56:40 - HelloAndroid] Starting activity miumiu.helloAndroid.helloAndroid on device 

[2010-09-04 09:56:42 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=miumiu.helloAndroid/.helloAndroid }



最后,祝大家安装ADT顺利

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值