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

You need to uninstall the old version and install 23

uninstall: Help > about Eclipse SDK > Installation Details select Android related packages to uninstall

And then install V23.

查看更多
高级女魔头
3楼-- · 2018-12-31 04:06

is what they are saying about this:

OK, guys, sorry about all this trouble, and we apologize for the messed up releases. Here's the summary:

Starting with ADT bundle 23.0.2, you should be able to update to future versions of ADT.

Source: https://code.google.com/p/android/issues/detail?id=72912

查看更多
ら面具成の殇う
4楼-- · 2018-12-31 04:06

There is no way to update an existing ADT bundle that you might have downloaded.

You can do one of two options:

  1. Install Eclipse from eclipse.org and install ADT by pointing to the update site: https://dl-ssl.google.com/android/eclipse

  2. Download bundles from:

Starting with ADT bundle 23.0.2, you should be able to update to future versions of ADT.

查看更多
回忆,回不去的记忆
5楼-- · 2018-12-31 04:06

I had to delete ADT and install it again.

However be warned, this caused me and one other person to have an annotations.jar missing errors in the Java Build path for certain projects, probably because it was trying to look for an old SDK, so upgrading projects is the next step I have to take.

The errors relate to libraries mostly, Google Play Services, Facebook SDK, ActionBarCompat.

For this step, you uninstall ADT, then put the URL back in to download them. The url is: https://dl-ssl.google.com/android/eclipse

查看更多
不流泪的眼
6楼-- · 2018-12-31 04:08

DO NOT DO THIS

Warning: Please see the comments below this answer. These steps have had a negative impact for many people.

  1. Click Help / Install new software...
  2. Click on What is "already installed" (as in picture below)
  3. In the new window you can uninstall the old ADT (uninstall Android Development Tools, Android DDMS, Android Hierarchy Viewer, Android TraceView, Android Native Development Tools and Tracer for OpenGL ES)
  4. Restart Eclipse
  5. Then again click on Help / Install New Software
  6. Choose ADT... Install

I hope it helps!

Picture Demonstration

查看更多
高级女魔头
7楼-- · 2018-12-31 04:08

I was getting the same "conflicting dependency" error on Mac OS X 10.9.3 and simply upgrading was not an option. What finally worked was downloading the latest Eclipse ADT bundle zip file from developer.android.com, extracting it and moving only "eclipse" folder to the place where my old eclipse folder was. (extracting the Eclipse ADT bundle zip file will give you "eclipse" and "sdk" folders).

If you decide to go the same route, first make sure you know what your Workspace path is. This can be found in Preferences. Then rename your old "eclipse" directory (not Eclipse.app) to something like eclipse-22.6.3, then move extracted "eclipse" folder into its place. Run new Eclipse.app inside, and when it asks you about Workspace, just enter the same path as you noted above. Or it can also be set later in Preferences.

Maybe worth adding is that to re-enable Android SDK Manager and Android Virtual Device Manager choose Window -> Customize Perspective -> Command Groups Availability and select Android SDK and AVD Manager. This will add these 2 items to the "Window" menu item for the current perspective (Java).

I didn't move the extracted "sdk" folder, because I already had sdk folder in the same directory as eclipse, which I have already updated to the latest Android tools. But if it makes you feel safer, you can also rename your old sdk folder (for backup purposes) and move the freshly extracted one into its place.

查看更多
登录 后发表回答