简体   繁体   English

无法将Android ADT安装到Eclipse Helios(Windows)

[英]Can't install Android ADT to Eclipse Helios (Windows)

Can't install Android ADT to Eclipe Helios causing errors: 无法将Android ADT安装到Eclipe Helios导致错误:

Cannot complete the install because of a conflicting dependency.
  Software being installed: Android Development Tools 16.0.1.v201112150204-238534 (com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534)
  Software currently installed: Eclipse IDE for Java Developers 1.3.1.20100916-1202 (epp.package.java 1.3.1.20100916-1202)
  Only one of the following can be installed at once: 
    Eclipse UI 3.7.0.I20110602-0100 (org.eclipse.ui 3.7.0.I20110602-0100)
    Eclipse UI 3.5.2.M20100120-0800 (org.eclipse.ui 3.5.2.M20100120-0800)
    Eclipse UI 3.6.1.M20100826-1330 (org.eclipse.ui 3.6.1.M20100826-1330)
    Eclipse UI 3.5.1.M20090902-1000 (org.eclipse.ui 3.5.1.M20090902-1000)
    Eclipse UI 3.6.2.M20110203-1100 (org.eclipse.ui 3.6.2.M20110203-1100)
    Eclipse UI 3.6.0.I20100603-1100 (org.eclipse.ui 3.6.0.I20100603-1100)
  Cannot satisfy dependency:
    From: Android Development Tools 16.0.1.v201112150204-238534 (com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534)
    To: org.eclipse.ui 3.6.2
  Cannot satisfy dependency:
    From: Eclipse IDE for Java Developers 1.3.1.20100916-1202 (epp.package.java 1.3.1.20100916-1202)
    To: org.eclipse.epp.package.java.feature.feature.group [1.3.1.20100916-1202]
  Cannot satisfy dependency:
    From: EPP Java Package 1.3.1.20100916-1202 (org.eclipse.epp.package.java.feature.feature.group 1.3.1.20100916-1202)
    To: org.eclipse.platform.feature.group [3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L]
  Cannot satisfy dependency:
    From: Eclipse Platform 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L (org.eclipse.platform.feature.group 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L)
    To: org.eclipse.rcp.feature.group [3.6.1.r361_v20100827-9OArFLdFjY-ThSQXmKvKz0_T]
  Cannot satisfy dependency:
    From: Eclipse RCP 3.6.1.r361_v20100827-9OArFLdFjY-ThSQXmKvKz0_T (org.eclipse.rcp.feature.group 3.6.1.r361_v20100827-9OArFLdFjY-ThSQXmKvKz0_T)
    To: org.eclipse.ui [3.6.1.M20100826-1330]

Any ideas how to get around this? 任何想法如何解决这个问题?

下载ADT插件 ,将所有文件夹(功能,插件,Web ...)解压缩并复制到Eclipse安装文件夹中。

如果您使用窗口7而不是以管理员身份运行

The only solution I found was to reinstall Eclipse from scratch. 我找到的唯一解决方案是从头开始重新安装Eclipse。 This is actually fairly easy, since all you have to do is unzip the package. 这实际上相当简单,因为你所要做的就是解压缩包。

So, I took the opportunity to upgrade to Eclipse Indigo at the same time. 所以,我借此机会同时升级到Eclipse Indigo。

I really can't do fresh install as my Eclipse is fully loaded with other features that I use in my projects. 我真的无法进行全新安装,因为我的Eclipse完全加载了我在项目中使用的其他功能。 And migrating features from existing Eclipse install to new install is painful in my experience (not considering if it will work). 从现有Eclipse安装到新安装的迁移功能在我的经验中是痛苦的(不考虑它是否可行)。

So I just unpacked the ADT zip file into the Eclipse install then it worked. 所以我只是将ADT zip文件解压缩到Eclipse安装中,然后就可以了。

I had the same issue and I tried copying all the files from ADT PLUGIN , re-installed eclipse but none of them seemed to help. 我有同样的问题,我尝试从ADT PLUGIN复制所有文件,重新安装eclipse但它们似乎都没有帮助。 Only updating eclipse (Help > Check for Updates) solved the issue. 只更新eclipse(帮助>检查更新)解决了这个问题。

BNW, STACK OVERFLOW has the same discussion. BNW, STACK OVERFLOW也有同样的讨论。

Just unzip the ADT and copy the contents to appropriate folders in eclipse installation. 只需解压缩ADT并将内容复制到eclipse安装中的相应文件夹即可。 Restart Eclipse. 重启Eclipse。 The issue will be solved. 这个问题将得到解决。

If you have come to this old thread while trying to upgrade your Eclipse Helios SDK to Lollipop, note the dependencies: 如果您在尝试将Eclipse Helios SDK升级到Lollipop时遇到此旧线程,请注意依赖项:

ADT 23.0.4 (October 2014) ADT 23。0。4(2014年10月)

Your existing Eclipse installation must meet these requirements: 您现有的Eclipse安装必须满足以下要求:

  • Eclipse 3.7.2 (Indigo) or greater Eclipse 3.7.2(Indigo)或更高版本
    • Note: Eclipse 3.6 (Helios) is no longer supported with the latest version of ADT. 注意:最新版本的ADT 不再支持Eclipse 3.6(Helios)
  • Eclipse JDT plugin (included in most Eclipse IDE packages) Eclipse JDT插件(包含在大多数Eclipse IDE包中)
  • JDK 6 (JRE alone is not sufficient) JDK 6(单靠JRE是不够的)
  • Not compatible with GNU Compiler for Java (gcj) 与GNU Compiler for Java(gcj)不兼容

I upgraded to Eclipse Luna and these errors did not reappear. 我升级到Eclipse Luna并且这些错误没有重新出现。

Error messages can be surprisingly useful. 错误消息可能非常有用。 The error message says you have a conflicting dependency. 错误消息表明您的依赖项存在冲突。 If it were my box I'd probably uninstall all instances of Eclipse, then install the one you want and see if that works. 如果它是我的盒子,我可能会卸载Eclipse的所有实例,然后安装你想要的那个,看看是否有效。

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

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