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


当前回答

我在Mac OS X 10.9.3上得到了同样的“依赖冲突”错误,简单地升级是一个选项。最终起作用的是从developer.android.com下载最新的Eclipse ADT包压缩文件,提取它并将“Eclipse”文件夹移到我原来的Eclipse文件夹所在的位置。(解压Eclipse ADT包压缩文件会给你“Eclipse”和“sdk”文件夹)。

如果您决定走相同的路线,首先要确保您知道您的Workspace路径是什么。这可以在Preferences中找到。然后将旧的“eclipse”目录(不是eclipse .app)重命名为类似eclipse-22.6.3的目录,然后将解压缩的“eclipse”文件夹移动到相应的位置。运行新的Eclipse。当它问你关于Workspace的问题时,只需要输入与上面提到的相同的路径。或者也可以稍后在Preferences中设置。

也许值得添加的是,重新启用Android SDK管理器和Android虚拟设备管理器选择窗口->自定义透视图->命令组可用性,并选择Android SDK和AVD管理器。这将把这两个项目添加到当前透视图(Java)的“Window”菜单项中。

我没有移动提取的“sdk”文件夹,因为我已经在eclipse的同一目录下有sdk文件夹,我已经更新到最新的Android工具。但是如果这让您感觉更安全,您还可以重命名您的旧sdk文件夹(出于备份目的),并将新提取的sdk文件夹移到原来的位置。

其他回答

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

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

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

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

在这个帖子里有很多困惑。根据ADT的安装方式,有两种解决方案。

如果您手动安装ADT插件,那么我相信您可以使用“删除ADT”->“安装新软件”方法。 如果你正在使用ADT Bundle,那么不要遵循这个解决方案!您将破坏Eclipse。下面是谷歌成员read #18的更新: https://code.google.com/p/android/issues/detail?id=72912

你必须下载一个新版本的ADT-Bundle(是的,这很令人沮丧!)

只需卸载之前的ADT。 进入菜单帮助→关于Eclipse→安装详细信息 卸载所有Id以com.android.ide开头的插件 从更新站点重新安装ADT。

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

我已经做了以下来解决一个问题。

Go to http://developer.android.com/sdk/installing/installing-adt.html and download the latest ADT ZIP file (at the bottom of page). Go to Eclipse → menu Help → About Eclipse → Installation details Delete Android DDM, Android Development Tools, Hierarchy Viewer, Native Development Tools, TraceView, etc., 22.X version. Menu Help* → Install New Software → Add → Archive → *Select the downloaded ZIP file in step 1. Select all the latest version of all 23 which I have deleted in step 3 and accept the license agreement.

重新启动Eclipse,它就修复了我的问题。