我用新的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丢失,其他工具也丢失。这个版本包含几个错误。
在尝试了其他答案中的方法后没有成功,我只是从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。
好运!: -)
已经提供的答案显示了解决方案在多大程度上依赖于您的特定环境。我最初尝试升级一台Windows 8.1的电脑;失败后,我尝试升级一台Vista电脑。但失败后,我在Win 8.1上尝试了Android Studio。由于O/S、Eclipse和Java之间的版本冲突,当然还有谷歌的崩溃,我们所有人都遇到了不同的解决方案。
以下是我所做的:
我放弃了这个包袱。对于Vista,我安装了Eclipse 4.3.2 (Kepler),并下载了加载23.0.2的SDK安装程序。已经安装了jdk1.6。唯一剩下的就是使用SDK管理器来下载我的最小平台(API 8)——V20并不是那么向后兼容。但至少现在我还没有完全死在水里。
对于Windows 8.1, Android Studio似乎已经安装。但是当我试图安装我的项目时,当它抱怨google-play-services_lib不包括时,它就停止了。我没有使用过它,所以这似乎是Android Studio的一个要求。真的吗?
所以我回到了Eclipse。我已经安装了Luna和jdk8u5,但后来试图恢复到适用于Vista的版本。Oracle没有jdk1.6,所以我只能下载1.7。下载SDK,同样是23.0.2。到目前为止一切顺利。
然后问题是安装程序-r23.0.2- Windows显然是在'C:\Windows\system32\java.exe':[2]中找到JDK。我将PATH设置为jdk1.7.0_65\bin并将JAVA_HOME环境变量也设置为它。既不工作。安装程序仍然阻塞在Windows\System32的java8上。
所以我重命名C:\Windows\System32\java.exe以禁用它,安装程序-r23找到C:\Program Files\Java\jre8\bin\java.exe.安装程序成功完成。为什么它不喜欢Windows\System 32中的相同文件(V8.0.5.13)对我来说是一个谜,但对某人来说可能是一个线索。
仍然需要下载API 8,但我认为我也可以在8.1的机器上运行。
Except for getting Eclipse to recognize my Motorola RazrM as a USB-attached device. That required going to the Win8.1 DeviceManager and updating the Mot Composite ADB Interface in ADB Interface. That required a download of the Motorola Device Manager. Still the phone did not appear in the Eclipse Devices View. It was waiting for a new confirmation on the phone that apparently has been added to the latest ADT. While I needed to upgrade the driver on my Samsung 10.1 tablet, it had not added the connection request confirmation.
噩梦终于结束了。我最大的问题似乎是跳到最新的版本——然后在23.0崩溃时试图倒退。我想我得到了一个惨痛的教训。但是,真的有这么难吗?
希望这能有所帮助。