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


当前回答

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

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,它就修复了我的问题。

其他回答

在尝试了其他答案中的方法后没有成功,我只是从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。

好运!: -)

我使用的是Eclipse v4.3 (Kepler),这就是我解决问题的方法。

进入菜单帮助→安装新软件→单击添加。

在弹出窗口中,给出任意名称(我将其命名为Eclipse ADT Plugin),并在链接的位置使用https://dl-ssl.google.com/android/eclipse/

单击OK后,将显示将要安装的新包和将要删除的旧包。不用担心这些包裹。单击OK。

将安装新的包,这应该可以解决您的问题。

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

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

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

我通过删除ADT Bundle来解决这些问题 一个错误。 然后我提取了新的ADT bundle来解决这些问题。之后,我在Android SDK Manager中更新了Android 4.4.2(API 19)。 你得到这些错误是因为更新Android SDK 22.6.2工具。下面是它的截图。 安装截图中显示的所有内容。那么这些 问题不会再发生。

不要这样做

警告:请参阅这个答案下面的评论。这些措施对许多人产生了负面影响。

点击帮助/安装新软件… 点击What is already installed(如下图所示) 在新的窗口中,您可以卸载旧ADT(卸载Android开发工具,Android DDMS, Android Hierarchy Viewer, Android TraceView, Android Native Development Tools and Tracer for OpenGL ES) 重新启动Eclipse 然后再次点击帮助/安装新软件 选择ADT……安装

我希望这能有所帮助!