我用新的SDK工具更新了Eclipse (rev. 23),但现在当Eclipse启动时,我收到了错误:

此Android SDK要求Android Developer Toolkit版本23.0.0或以上。当前版本为22.6.3.v201404151837-1123206。请更新ADT到最新版本

“检查更新”没有发现更新。如果我尝试“安装新软件”,我可以看到版本23,但由于以下错误,我无法升级:

Cannot complete the install because of a conflicting dependency.
Software being installed: Android Development Tools 23.0.0.1245622 (com.android.ide.eclipse.adt.feature.feature.group 23.0.0.1245622)
Software currently installed: Android Developer Tools 22.2.1.v201309180102-833290 (com.android.ide.eclipse.adt.package.product 22.2.1.v201309180102-833290)
Only one of the following can be installed at once: 
    ADT Package 22.6.3.v201404151837-1123206 (com.android.ide.eclipse.adt.package 22.6.3.v201404151837-1123206)
    ADT Package 23.0.0.1245622 (com.android.ide.eclipse.adt.package 23.0.0.1245622)
Cannot satisfy dependency:
    From: Android Development Tools 23.0.0.1245622 (com.android.ide.eclipse.adt.feature.feature.group 23.0.0.1245622)
    To: com.android.ide.eclipse.adt.package [23.0.0.1245622]
Cannot satisfy dependency:
    From: Android Development Tools 22.6.3.v201404151837-1123206 (com.android.ide.eclipse.adt.feature.group 22.6.3.v201404151837-1123206)
    To: com.android.ide.eclipse.adt.package [22.6.3.v201404151837-1123206]
Cannot satisfy dependency:
    From: ADT Package 22.2.1.v201309180102-833290 (com.android.ide.eclipse.adt.package.feature.group 22.2.1.v201309180102-833290)
    To: com.android.ide.eclipse.adt.feature.group 22.2.0
Cannot satisfy dependency:
    From: Android Developer Tools 22.2.1.v201309180102-833290 (com.android.ide.eclipse.adt.package.product 22.2.1.v201309180102-833290)
    To: com.android.ide.eclipse.adt.package.feature.group [22.2.1.v201309180102-833290]

从网站下载上一份ADT后,似乎又出现了一个问题。

没有安装SDK Tools rev. 23 proguard,文件夹SDK dir/ Tools /proguard丢失,其他工具也丢失。这个版本包含几个错误。


当前回答

如何从22.xx更新。X到23.0.2(我的解决方案)。这将解决依赖性问题。

我被这个问题折磨了几天,我已经尝试了这个环节上的每一个解决方案,但运气不好。我终于想出了一个真正有效的解决方案!

请注意,此解决方案适用于Windows 7(64位)。它应该适用于其他Windows操作系统。

开始吧:

download the latest ADT bundle from http://developer.android.com/sdk/index.html#download unzip it and open "eclipse" folder --> "plugins" folder Now go to your old eclipse and open "eclipse" folder --> "plugins" folder, and copy everything inside. Now paste them into the "plugins" folder of the (NEW ECLIPSE), but DO NOT overwrite anything. While inside of the "plugins" folder of your new Eclipse, do the search. Type in 22. (notice 22 with a dot) and hit enter. The search result will show up all the files or folders with .....22.6...... For example, com.android.ide.eclipse.adt_**22.6.2**.v201403212031-1085508 Highlight all of these files/folders and hit delete key. Make sure to update your old API/SDK to the latest version and load this sdk directory to work with your new eclipse.

or

您可以观看这个视频,它向您展示如何将所有SDK/API移动到新的SDK文件夹。

链接:https://www.youtube.com/watch?v=jPZpJdnbbN0

我没有尝试从任何其他ADT版本更新,但我认为它应该适用于任何旧的ADT版本。

尝试之前不要忘记备份。

其他回答

谷歌发布了ADT v23.0.2。这解决了之前ADT版本23的许多问题。

循序渐进:

菜单帮助→安装新软件… 对于“Work with”,选择Android源代码https://dl-ssl.google.com/android/eclipse 勾选ADT v23.0进行安装,然后点击“下一步” Eclipse将显示“安装修复页面”,因为与以前的版本有冲突。(如果没有,请参见下文。)选择“更新我的安装使其与正在安装的项目兼容”以卸载旧版本并安装新版本。之后,按照通常的步骤进行。

注意:当我安装新版本的ADT时,我没有包括新版本的“Android原生开发工具”包。相反,我先安装了其余的包,然后安装了“Android原生开发工具”。由于某种原因,如果我尝试安装包括“Android原生开发工具”在内的所有新包,安装会失败。

如果没有“补救页面”,从Eclipse中删除ADT插件的唯一方法是进入菜单帮助→关于Eclipse→安装详细信息并从那里卸载。但是存在卸载Eclipse本身的风险。

在ADT捆绑的Eclipse上,我必须首先卸载ADT,然后重新安装。

从Eclipse中删除ADT插件:

进入菜单帮助→关于Eclipse→安装详细信息。 选择ADT插件,然后单击Uninstall。 卸载后从帮助→安装新软件安装ADT。

他们是这么说的

好了,伙计们,很抱歉给你们带来这么多麻烦,我们为混乱的发布道歉。总结如下:

There is no way to update an existing ADT bundle that you might have downloaded. You can do one of two options: Install Eclipse from eclipse.org and install ADT by pointing to the update site: https://dl-ssl.google.com/android/eclipse Download bundles from here: Linux 64-bit VM: http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip Linux 32-bit VM: http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip Mac: http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip Windows 32-bit: http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip Windows 64-bit: http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip

从ADT bundle 23.0.2开始,您应该能够更新到ADT的未来版本。

来源:https://code.google.com/p/android/issues/detail?id=72912

我这样做是为了解决同样的问题(在OS X中):

帮助>安装新软件>添加或选择此存储库“http://download.eclipse.org/eclipse/updates/4.3” 在“Eclipse平台”下选择最新版本的Eclipse。 安装程序将询问您是否要卸载ADT,单击完成。 重新启动Eclipse并使用这个存储库(https://dl-ssl.google.com/android/eclipse)仅安装ADT 23。 重新启动Eclipse并安装DDMS,层次结构查看器,跟踪视图等。 重新启动Eclipse。

希望能有所帮助。

注意:请谨慎使用这种方法,因为这可能会破坏Eclipse安装(请参阅注释)。

如果您手动安装ADT插件,这可能会对您有所帮助。但是如果您正在使用Eclipse ADT Bundle中的Eclipse版本,那么以下步骤可能会破坏您的Eclipse安装,并且您可能无法再次使用Eclipse !

菜单帮助→关于Eclipse SDK→安装详细信息。

现在你会看到所有的22.0版本,然后点击底部的卸载按钮。

卸载后转到:

菜单帮助→安装新软件→输入http://dl-ssl.google.com/android/eclipse/

然后安装所有的东西,现在就准备好了。