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

I was updating my build server today and came across the same issue. It has been reported here: https://code.google.com/p/android/issues/detail?id=72419

The fix is in progress and the work around according to the project manager is:

Please wait for an updated version within a day or two. Until then, your workaround is to do download one of

http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz

http://dl.google.com/android/android-sdk_r22.6.2-windows.zip

http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip

and copy over the following files:

    tools/hprof-conv
    tools/support/annotations.jar
    tools/proguard

[edit] zipalign was missing for me too, check to see if you need to copy this as well

查看更多
忆尘夕之涩
3楼-- · 2018-12-31 04:01

Google has released ADT v23.0.2. This solved many problems of previous ADT version 23.

Step-by-step:

  • Menu Help → Install New Software...
  • For "Work with", select the Android source https://dl-ssl.google.com/android/eclipse Work with Android source
  • Tick ADT v23.0 for installation, then click "Next"
  • Eclipse will show "Install Remediation Page" since there is conflict with previous version. (If it does not, see below.) Select "Update my installation to be compatible with items being installed" to uninstall the old version and install the new one. After that, proceed with the usual steps.

Install remediation page

Note: When I installed the new version of ADT, I didn't include the new version of "Android Native Development Tools" package. Instead, I installed the rest of packages first, and then installed "Android Native Development Tools". For a reason, if I try to install all the new packages including "Android Native Development Tools", the installation fails.

If there is no "Remediation page", the only way to remove the ADT plugin from Eclipse is to go to menu HelpAbout EclipseInstallation Details and uninstall from there. But there is a risk of uninstalling Eclipse itself.

查看更多
还给你的自由
4楼-- · 2018-12-31 04:01

After trying the approaches in other answers without success, I just installed a new bundle from http://developer.android.com/sdk/installing/index.html?pkg=adt and that worked fine.

Do the following:

  1. 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.
  2. 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.
  3. 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.

With these steps, you should't have to reconfigure everything, and you won't need to spend time troubleshooting this BUG on this upgrade from Google Developers.

Good luck! ;-)

查看更多
皆成旧梦
5楼-- · 2018-12-31 04:02

Google response:

This is a packaging bug. The entire proguard file is missing. We'll have an update asap, but until then just copy it over from a previous version of the tools:

and copy over the following files:

  • tools/hprof-conv
  • tools/support/annotations.jar
  • tools/proguard

So at the end if you started from a new ADT copy by hand the files :)

Edit: with the latest ADT release, the bundle should now work with auto-update, so install these new versions:

Don't try to upgrade from previous version because it doesn’t work at all. If you have got problems with zipalign, it's now under build-tools and no more under tools/ so you can do a symbolic link or just copy it into the expected folder.

查看更多
牵手、夕阳
6楼-- · 2018-12-31 04:02
  • Just uninstall the previous ADT.
  • Go to menu HelpAbout EclipseInstallation Details
  • Uninstall all plugins which Id start with com.android.ide
  • Install ADT again from the update site.
查看更多
君临天下
7楼-- · 2018-12-31 04:03

On ADT-bundled Eclipse I had to first uninstall the ADT and then do a fresh install.

To remove the ADT plugin from Eclipse:

  • Go to menu HelpAbout EclipseInstallation Details.
  • Select ADT plug-in, then click Uninstall.
  • After uninstallation install ADT from Help → Install new software.
查看更多
登录 后发表回答