我用新的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安装(请参阅注释)。

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

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

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

卸载后转到:

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

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

其他回答

谷歌发布了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本身的风险。

只有帮助:

新Eclipse安装(http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/lunar) 帮助——>安装新软件——> https://dl-ssl.google.com/android/eclipse/

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

这很简单,对我很有用。

我刚刚发现的是,在更新构建工具之前,你需要更新Eclipse中的ADT插件(无论是独立的还是ADT Bundle)。

如果您的Eclipse安装指向最新的构建工具,并且您的Eclipse有ADT 22。X,它会显示这些误差。

对我有效的方法:(Ubuntu 14.04 64位)

安装旧版本的Eclipse和ADT(来自Bundle) 这个Eclipse副本指向一个使用旧构建工具的旧SDK版本(20年前)。 更新ADT到v23(通过存档,在我的情况下) 将Eclipse指向构建工具的最新版本。

您可能没有Eclipse和构建工具的旧版本,在这种情况下,您可以从SDK管理器卸载最新的构建工具,并安装旧版本。 一旦一切开始正常工作,执行上述步骤。

我试图在互联网上的某个地方上传这样的包的旧副本,将更新这里的链接,一旦我完成上传。

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