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:42

None of the other answers worked for me using the ADT bundle published on developer.android.com.

I ended up downloading the latest version of Eclipse (not the ADT bundle) and then installing the ADT plugin via menu HelpInstall new software → entering https://dl-ssl.google.com/android/eclipse (mentioned by @RED_).

I also had to update my workspace to point to my previous workspace, and most things seemed to be restored.

On a side note: This seems like a good time to migrate to Android Studio...

查看更多
梦寄多情
3楼-- · 2018-12-31 03:42
还给你的自由
4楼-- · 2018-12-31 03:42

I found these instructions in a comment.

Download the newest version of ADT and use your existing workspace. This is actually the least pain-full upgrade you'll ever do. It didn't mess with the .android folder so I still had my original debug key. Only things missing were a couple of add ons I hardly ever use and they are easily installed into the new version.

Note don't install into your existing adt folder create a new folder so you can still fall back if the new install doesn't work.

查看更多
君临天下
5楼-- · 2018-12-31 03:42

I did this to solve the same issue (in OS X):

  1. Help > Install New Software > Add or select this repository "http://download.eclipse.org/eclipse/updates/4.3"
  2. Under "Eclipse platform" select the newest version of Eclipse.
  3. The installer will ask if you want to uninstall the ADT, click finish.
  4. Restart Eclipse and install ONLY the ADT 23 using this repository: https://dl-ssl.google.com/android/eclipse.
  5. Restart Eclipse and install DDMS, Hierarchy Viewer, Trace View etc.
  6. Restart Eclipse again.

Hope it helps.

查看更多
余生无你
6楼-- · 2018-12-31 03:43

It works for me :)

If for some reason you installed an ADT preview and need to revert back to the current stable, you can't use the dialog to install "new" software since what you want is actually an older one. Instead do this:

  • Open Help > About Eclipse... on Windows or Linux. On Mac, use the app's menu > About...
  • Click the "Installation Details" button.
  • Select the "Installation History" tab.
  • Select one of the previous configurations.
  • Click the "Revert" button at the bottom.

enter image description here

查看更多
裙下三千臣
7楼-- · 2018-12-31 03:43

If you install a new Eclipse version it will work. Here's what I did:

  1. Installed the new Eclipse version, Luna
  2. Made a backup of the current workspace.
  3. Ran the new Eclipse, Luna, and updated the workspace
  4. Installed the ADT plugin (Help -> Install New Software)
  5. Restarted Eclipse
  6. Done
查看更多
登录 后发表回答