我用新的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丢失,其他工具也丢失。这个版本包含几个错误。
如何从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版本。
尝试之前不要忘记备份。
我刚刚发现的是,在更新构建工具之前,你需要更新Eclipse中的ADT插件(无论是独立的还是ADT Bundle)。
如果您的Eclipse安装指向最新的构建工具,并且您的Eclipse有ADT 22。X,它会显示这些误差。
对我有效的方法:(Ubuntu 14.04 64位)
安装旧版本的Eclipse和ADT(来自Bundle)
这个Eclipse副本指向一个使用旧构建工具的旧SDK版本(20年前)。
更新ADT到v23(通过存档,在我的情况下)
将Eclipse指向构建工具的最新版本。
您可能没有Eclipse和构建工具的旧版本,在这种情况下,您可以从SDK管理器卸载最新的构建工具,并安装旧版本。
一旦一切开始正常工作,执行上述步骤。
我试图在互联网上的某个地方上传这样的包的旧副本,将更新这里的链接,一旦我完成上传。
我已经做了以下来解决一个问题。
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,它就修复了我的问题。