简体   繁体   English

如何在Eclipse中安装Android ADT插件?

[英]How to install the Android ADT Plugin in Eclipse?

I followed the instructions on ADT Plugin for Eclipse but I got this message when installing in Eclipse: 我按照ADT Plugin for Eclipse上的说明进行操作,但是在Eclipse中安装时我收到了这条消息:

Cannot complete the install because one or more required items could not be found
  Software being installed: Android Development Tools 0.9.9.v201009221407-60953 
      (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953)
  Missing requirement: Android Development Tools 0.9.9.v201009221407-60953
      (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953)
      requires 'org.eclipse.gef 0.0.0' but it could not be found

I have tried with both 64bit and 32bit Eclipse Galileo fresh installs. 我尝试过使用64位和32位Eclipse Galileo全新安装。 I am using Windows 7. 我使用的是Windows 7。

Update: I followed the steps on org.eclipse.gef 0.0.0 required for installing Android Development Tools on Eclipse 3.5.1 and installed GEF SDK 3.5.2 but now I got a new similar error message when installing ADT: 更新:我按照在Eclipse 3.5.1上安装Android开发工具所需的org.eclipse.gef 0.0.0上的步骤并安装了GEF SDK 3.5.2但现在我在安装ADT时收到了一条新的类似错误消息:

Cannot complete the install because one or more required items could not be found
  Software being installed: Android Development Tools 0.9.9.v201009221407-60953 
      (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953)
  Missing requirement: Android Development Tools 0.9.9.v201009221407-60953
      (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953)
      requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found

How can I install the Android ADT Plugin for Eclipse 3.5.2 on Windows? 如何在Windows上安装适用于Eclipse 3.5.2的Android ADT插件?

I finally followed the instructions on During installation, there's an error about requiring org.eclipse.wst.sse.ui. 我终于按照安装过程中的说明,出现了关于要求org.eclipse.wst.sse.ui的错误。 How do I fix that? 我该如何解决这个问题? and installed Google Plugin for Eclipse Galileo , then the installation of Android ADT Plugin worked without any problem, finally. 为Eclipse Galileo安装了谷歌插件 ,然后安装Android ADT插件工作没有任何问题,最后。

On ubuntu 11 it installs Eclipse 3.7 (indigo). 在ubuntu 11上,它安装了Eclipse 3.7(indigo)。 To make it work i had to add http://download.eclipse.org/releases/indigo to the list of sources. 为了使其工作,我必须将http://download.eclipse.org/releases/indigo添加到源列表中。 After that it worked like a charm. 之后,它就像一个魅力。

On Windows 7, run Eclipse using As Administrator . 在Windows 7上,使用As Administrator运行Eclipse。

PS: I made it in conjunction with other advices like adding Indigo release URL to available sources and using HTTP instead of HTTPS, and I didn't tested if all three requirements must be met or the first is sufficient. PS:我与其他建议一起制作,例如将Indigo发布URL添加到可用来源并使用HTTP而不是HTTPS,我没有测试是否必须满足所有三个要求或第一个是否足够。

This worked for me 这对我有用

  1. Go to Help->Install New Software 转到帮助 - >安装新软件
  2. Go to "Available software sources" 转到“可用的软件源”
  3. Check all the boxes 检查所有方框
  4. Try the official instructions again. 再次尝试官方说明。 http://developer.android.com/sdk/eclipse-adt.html#installing http://developer.android.com/sdk/eclipse-adt.html#installing

Installing on 3.7 Indigo, I found the plug-in is now called: 在3.7 Indigo上安装,我发现插件现在被称为:

WST Server Adapters WST服务器适配器

org.eclipse.wst.server_adapters.feature.feature.group org.eclipse.wst.server_adapters.feature.feature.group

I got the same message in Galileo then I installed Indigo and it worked although I checked only dev tools and plugins the other two I didn't install and had some error with those. 我在Galileo得到了相同的消息然后我安装了Indigo并且它工作了虽然我只检查了开发工具和插件其他两个我没有安装并且有一些错误。 But the ADT works now. 但ADT现在有效。

您应该将计算机的连接设置为无代理,并以管理员身份运行eclipse

If anyone is upgrading from eclipse 3.6 and they've copied (overwritten or merged) their directories you will get a conflicting dependency error and ADT won't install. 如果有人从eclipse 3.6升级并且他们复制(覆盖或合并)他们的目录,你将得到一个冲突的依赖性错误,ADT将无法安装。 Make sure you go back , delete eclipse, unzip the new eclipse fresh to the new location and run it! 确保你回去,删除eclipse,将新的eclipse解压缩到新的位置并运行它! Worked for me! 为我工作!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM