我用新的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并重新安装。

但是要注意的是,这导致我和另一个人在某些项目的Java Build路径中出现annotation .jar缺失错误,可能是因为它试图寻找旧的SDK,所以升级项目是我必须采取的下一步。

错误主要与库有关,谷歌播放服务,Facebook SDK, ActionBarCompat。

在此步骤中,卸载ADT,然后将URL放回以下载它们。url为:https://dl-ssl.google.com/android/eclipse

其他回答

我遵循了这里找到的说明,并试图修复我的旧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设备上编译和启动应用程序。就是这么简单。谢谢谷歌;-(

这对我很管用。我一直使用ADT bundle的新安装升级到23.02版本(或23.03版本),并迁移您原来的工作空间并添加补丁。这是ADT Bundle的程序。

(先备份你的工作空间)

1/从谷歌安装最新的adt bundle。(出于某种原因,使用谷歌的下载页面在Chrome上循环!?!)

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

2/从这里下载补丁:

linux http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz Windoze http://dl.google.com/android/android-sdk_r22.6.2-windows.zip Mac http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip

3/根据谷歌(描述不佳)的说明应用补丁

...并复制以下文件:

工具/ hprof-conv 工具/支持/ annotations.jar 工具/混淆器

这意味着=>只复制tools/ hprov -conv的文件 这意味着=>只复制tools/support/annotations.jar文件 这意味着=>复制目录和tools/proguard的所有内容

3/在启动时将旧工作区指向新安装。 (项目仍然会出现错误,不要担心)

4/选择Help->安装新软件,选择更新站点,根据界面提示选择版本23.03。

检查更新站点,从https => http编辑谷歌,如下所示: . 这似乎使Eclipse Updater构建了一个新的更新配置文件,以避免下载错误。你也可能从windows中得到“unsigned”提示警告提示,但只是“允许访问”以防止阻塞。

5/如果你仍然在引用“android.”时出错。R”,这是因为您可能没有适当的“平台构建工具”。查看“Android SDK管理器”,你有这样的构建工具: 还要检查项目的“Android”构建,以确保具有兼容的Android API。

应该下载版本23.02,现在应该编译您的项目了。

谷歌已经放弃了所有的UI装饰Eclipse ADT(即你会看到朱诺飞溅)。我原以为这会是个问题,但现在看来还好。我认为这表明谷歌是多么不顾一切地想要得到修复。考虑到Android工作室已经不远了,谷歌不想在ADT上投入更多时间。我想这就是你从“免费”软件中得到的东西。希望成年人现在能重新掌权,谷歌工作室不会成为一场灾难。

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

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

注意不要安装到你现有的adt文件夹,创建一个新文件夹,这样如果新的安装不工作,你仍然可以后退。

它正在卸载旧文件,但您不必重新启动Eclipse。卸载过程结束后,安装新软件,然后重新启动Eclipse。

这很简单,对我很有用。

如何从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版本。

尝试之前不要忘记备份。