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

If Eclipse gives an error after uninstalling the ADT plugin from your Eclipse installation, try to edit file config.ini in the Eclipse folder → configuration. Find:

eclipse.application=

And change it to:

eclipse.application=org.eclipse.ui.ide.workbench

I hope it works for you too.

查看更多
闭嘴吧你
3楼-- · 2018-12-31 03:50

I am using Eclipse v4.3 (Kepler), and this is how I solved my problem.

Goto menu HelpInstall new software → click Add.

In the popup, give any name (I named it as Eclipse ADT Plugin), and in the link's place, use https://dl-ssl.google.com/android/eclipse/

Once you click OK, you will be displayed with new packages that will be installed and old packages that will be deleted. Don't worry about these packages. Click OK.

New packages will be installed, and this should solve your problem.

查看更多
妖精总统
4楼-- · 2018-12-31 03:53

What I have just found is that you need to update your ADT plugin in your Eclipse (whether stand alone or ADT Bundle) before updating your build tool.

If your Eclipse installation points to the most recent Build Tool and your Eclipse is having ADT 22.x, it will show those errors.

What worked for me: (on Ubuntu 14.04 64-bit)

  • Installed an older version of Eclipse and ADT (from the Bundle)
  • This copy of Eclipse was pointing to an older SDK verion with old build tools (before 20)
  • Updated the ADT to v23 (via archive, in my case)
  • Pointed Eclipse to the latest version of build tools.

You may not have an older copy of Eclipse and Build tools, in that case you can uninstall latest build tool from SDK Manager and install the older copy.
Once everything starts working fine, do the above steps.

I am trying to upload older copies of such bundles somewhere on the Internet, will update the links here, once I am done uploading.

查看更多
千与千寻千般痛.
5楼-- · 2018-12-31 03:53

I found a solution for the problem with "conflicting dependency". I don't have the same page of Daniel Díaz's response, but a page show "conflicting dependency", and I can't make anything.

The problem is that I'm not the owner of the file. Eclipse was installed in other session (on OS X). I have the right to read and write the Eclipse file, but I'm not the owner. Make a "chown" command on all Eclipse files to solve the problem. After, I have the same result as Daniel Diaz.

I hope this helps someone.

查看更多
临风纵饮
6楼-- · 2018-12-31 03:53

I simply went to my Android resources folder on my C:/ drive (C:/Android), deleted the 'eclipse' folder and all its contents. I downloaded Android Developer Tools once more and just moved over the 'eclipse' folder.

I started up and everything was fine; I had updated to version 23.

Hopefully this helps, possibly not suitable for everyone as some of you have Eclipse modifications but for someone who, like me, wanted a quick fix and get back to developing this seemed to be the easiest path.

查看更多
人间绝色
7楼-- · 2018-12-31 03:54

There is a lot of confusion going around in this thread. There are two solutions depending on how you installed ADT.

  1. If you installed the ADT plugin manually then I believe you can use the "Delete ADT" -> "Install New Software" approach.

  2. If you are using the ADT Bundle then do not follow that solution! You will break Eclipse. Here is an update from a Google member - read #18:

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

You must download a new version of the ADT-Bundle (yep, it's frustrating!).

查看更多
登录 后发表回答