我用新的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丢失,其他工具也丢失。这个版本包含几个错误。


当前回答

我在评论中找到了这些说明。

下载最新版本的ADT并使用您现有的工作区。这实际上是你所做过的最不痛苦的升级。它没有打乱。android文件夹,所以我仍然有我原来的调试键。唯一缺少的是几个我几乎不用的插件,它们很容易安装到新版本中。

注意不要安装到你现有的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

我今天更新了我的构建服务器,遇到了同样的问题。报告如下: https://code.google.com/p/android/issues/detail?id=72419

修复正在进行中,根据项目经理的说法,周围的工作是:

请在一两天内等待更新版本。在那之前,你的解决办法是下载一个 http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz http://dl.google.com/android/android-sdk_r22.6.2-windows.zip http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip 并复制以下文件: 工具/ hprof-conv 工具/支持/ annotations.jar 工具/混淆器

(编辑) Zipalign也没有给我,看看你是否也需要复制这个

在尝试了其他答案中的方法后没有成功,我只是从http://developer.android.com/sdk/installing/index.html?pkg=adt安装了一个新的捆绑包,效果很好。

做以下几点:

As you don't want to re-download all the platforms again, copy the existing one from /OLD_ANDROID_SDK_PATH/sdk/platforms to /NEW_ANDROID_SDK_PATH/sdk/platforms. When opening the new Eclipse from the recent downloaded bundle, make sure you reuse the previous 'workspace' folder. That will ensure that all your previous settings will be remembered. After opening the new Eclipse on the previous workspace, please check if the used Android SDK is pointing to the new one (Eclipse preferences -> Android). It might be pointing to the old one, as you've reused the previews workspace settings.

通过这些步骤,您不应该重新配置所有内容,也不需要花费时间从谷歌开发人员升级时排除此BUG。

好运!: -)

从谷歌下载ADT v23插件,并从Eclipse中下载的zip文件中将其作为本地存档安装。

http://developer.android.com/sdk/installing/installing-adt.html#Download

解决方案请参见:http://bazalabs.com/solution-for-the-update-problem-of-android-developer-toolkit-version-23-0-0-or-above/

这种解决方案是更改文件并保留Eclipse ADT而不下载新文件的正确方法。