Update Eclipse with Android development tools v. 2

2018-12-31 03:20发布

I updated Eclipse with the new SDK tools (rev. 23), but now when Eclipse starts I receive the error:

This Android SDK requires Android Developer Toolkit version 23.0.0 or above. Current version is 22.6.3.v201404151837-1123206. Please update ADT to the latest version.

No updates were found with "Check for updates". If I try "Install new software", I can see version 23, but I can't upgrade due to the following error:

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]

After download of the last ADT from the web site, it seems there's another problem.

With SDK Tools rev. 23 proguard is not installed, the folder SDK dir/tools/proguard is missing, and other tools are missing. This version contains several bugs.

30条回答
旧时光的记忆
2楼-- · 2018-12-31 03:45

NOTE: Use this approach with caution because this might break your Eclipse installation (see comments).

This might help you if you installed the ADT plugin manually. But if you are using the version of Eclipse from the Eclipse ADT Bundle the below steps could break your Eclipse installation, and you may not be able to use Eclipse again!

Go to

Menu HelpAbout Eclipse SDKInstallation Details.

Now you will see all 22.0 versions and then click Uninstall button at bottom.

After uninstallation goto:

Menu HelpInstall New Software → enter http://dl-ssl.google.com/android/eclipse/

Then install all the things, and now it is ready.

查看更多
后来的你喜欢了谁
3楼-- · 2018-12-31 03:45

For me it helped to delete Android 4.4W which is also API 20 and might be a cause for the conflict. So only install Android 4.4W or Android L until they fix it.

And (again this might only be for me) it only works in Android Studio not in Eclipse ...

查看更多
听够珍惜
4楼-- · 2018-12-31 03:46

I have done following to resolve an issue.

  1. Go to http://developer.android.com/sdk/installing/installing-adt.html and download the latest ADT ZIP file (at the bottom of page).

  2. Go to Eclipse → menu HelpAbout EclipseInstallation details

  3. Delete Android DDM, Android Development Tools, Hierarchy Viewer, Native Development Tools, TraceView, etc., 22.X version.

  4. Menu Help* → Install New SoftwareAddArchive → *Select the downloaded ZIP file in step 1.

  5. Select all the latest version of all 23 which I have deleted in step 3 and accept the license agreement.

Restart Eclipse, and it fixes my issue.

查看更多
何处买醉
5楼-- · 2018-12-31 03:47

WARNING

There is now an update for ADT 23.0.1, but the Windows and Linux scripts are messed up, so wait with the upgrade!

You could check for example tools/proguard/bin/*.sh in http://dl.google.com/android/android-sdk_r23.0.1-windows.zip.

查看更多
有味是清欢
6楼-- · 2018-12-31 03:48

How to update from 22.xx.x to 23.0.2 (my solution). This will beat the dependency issues.

I was suffering from this issue for days, and I have tried every single solution on this link, but no luck. I finally figured out a solution that actually works!

Please note that this solution works in Windows 7 (64 bit). It should probably work for other Windows operating systems.

Here we go:

  1. download the latest ADT bundle from

    http://developer.android.com/sdk/index.html#download

  2. unzip it and open "eclipse" folder --> "plugins" folder

  3. Now go to your old eclipse and open "eclipse" folder --> "plugins" folder, and copy everything inside.

  4. Now paste them into the "plugins" folder of the (NEW ECLIPSE), but DO NOT overwrite anything.

  5. While inside of the "plugins" folder of your new Eclipse, do the search. Type in 22. (notice 22 with a dot) and hit enter.

  6. 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
    
  7. Highlight all of these files/folders and hit delete key.

  8. Make sure to update your old API/SDK to the latest version and load this sdk directory to work with your new eclipse.

or

You can watch this video, which shows you how to move all your SDK/API to your new SDK folder.

Link: https://www.youtube.com/watch?v=jPZpJdnbbN0

I have not tried to update from any other ADT versions, but I think it should work for any old ADT versions too.

Don't forget to backup stuff before attempting.

查看更多
柔情千种
7楼-- · 2018-12-31 03:49

I faced the same problem and solved it. You need to uninstall the Android plugin entirely from within Eclipse (from the "about" section..), including trace view..

Then added the ADT Plugin again (https://dl-ssl.google.com/android/eclipse/) and install it.

The problem is solved!

I guess it's a bug with the SDK manager or ADT Plugin update mechanism...

查看更多
登录 后发表回答