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


当前回答

我遵循了这里找到的说明,并试图修复我的旧Eclipse + SDK + ADT,但没有运气。基本问题是一样的;我仍然得到错误消息:

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

但是我的eclipse找不到更新,也不能将ADT 23作为新软件安装。所以我不能在我的工作区编译我的旧项目。

I tested a fresh eclipode bundle for Windows 8, followed instructions found from Android's developers page, step by step, and it worked fine. So it seems that the Windows Eclipse build is not broken. But I wan't use my Linux installation, my old Ubuntu 10. It seems obvious, that to getting the Linux Eclipse environment working again, I must install a new Eclipse bundle, my old Eclipse won't ever see updates for ADT 23 to get things working. Again, these intructions are for Linux developers that wan't to get their old workspace projects working again without changes in the developing environment, except you must install a new Eclipse bundle, but after that your projects will work as well as before the version 23 SDK/ADT-mess.

If you are an Android developer you want to be sure, that you developing environment won't be messed up. Backup: ~./android (Here are your developer keys) Your old SDK dirrectory Your workspace Download the Eclipse bundle, Get the Android SDK. Follow instructions, create directory ~/Development and unzip bundle there. You get Eclipse and SDK directories. Start Eclipse from that directory Eclipse asks for a workspace. You can give it the old one. In Eclipse settings set SDK as downloaded SDK. Start Android SDK manager and download tools, Android versions you use and extras said in the Android developer tool page instructions You should now be ready to compile your old projects again, but for me it was not that simple. My old projects had errors. So open problems windows and you get to know that annotation.jar is missing. So you must copy annotations.jar from your old SDK, from, the backup you made, or from the older sdk.zip explained in this thread to <new SDK>/tools/support/annotations.jar

在那之后,我可以使用我在Ubuntu中的旧工作区,并在Android设备上编译和启动应用程序。就是这么简单。谢谢谷歌;-(

其他回答

我也遇到了同样的问题,并且解决了它。你需要完全从Eclipse中卸载Android插件(从“about”部分..),包括跟踪视图..

然后再次添加ADT插件(https://dl-ssl.google.com/android/eclipse/)并安装它。

问题解决了!

我猜这是SDK管理器或ADT插件更新机制的bug…

有一个新的更新可用。

更新Android SDK工具到23.0.1 更新您的Eclipse。求助->检查是否更新 然后重新启动Eclipse

这将修复空src和布局的问题。

谷歌回应:

这是一个包装错误。整个保护文件都不见了。我们会尽快有一个更新,但在那之前只是复制它从以前版本的工具:

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 工具/混淆器

所以在最后,如果你从一个新的ADT拷贝开始,手动拷贝文件:)

编辑:在最新的ADT版本中,bundle现在应该可以自动更新,所以安装这些新版本:

Linux 64位虚拟机:http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip Linux 32位虚拟机:http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip 麦克:http://dl.google.com/android/adt/adt - bundle - mac - x86_64 - 20140702. - zip win32: http://dl.google.com/android/adt/adt - bundle - windows - x86 - 20140702. - zip win64: http://dl.google.com/android/adt/adt - bundle - windows - x86_64 - 20140702. - zip

不要尝试从以前的版本升级,因为它根本不能工作。 如果你有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。

好运!: -)

使用developer.android.com上发布的ADT包,其他答案对我来说都不起作用。

我最终下载了最新版本的Eclipse(不是ADT包),然后通过菜单帮助→安装新软件→进入https://dl-ssl.google.com/android/eclipse (@RED_提到过)安装ADT插件。

我还必须更新我的工作空间以指向我以前的工作空间,而且大多数东西似乎都恢复了。

顺便说一句:这似乎是迁移到Android Studio的好时机……