Eclipse: won't let me use Android SDK, wrongly claims my ADT is out of date

AndroidWindowsEclipseAdt

Android Problem Overview


I'm developing for Android with Eclipse, and all was working well until yesterday. I used Ninite to update all my stuff, including JREs and everything (pro tip: do not do that), and it restarted my computer without asking in the middle of editing my workspace.

This caused all kinds of filthy problems, but now it all works, except for Android. I've updated Android SDK and the eclipse ADT, then when I try to tell Eclipse the SDK location, it gives this error:

> This Android SDK requires Android Developer Toolkit version 14.0.0 or > above. Current version is 12.0.0.v201106281929-138431. Please update > ADT to the latest version.

Now, this is an outright lie. My ADT is version 14.0.something. I've tried Help>Check for updates, it says there are no updates. I've tried Help>Install new software...>Available Software Sites and removing the ADT repo, then reinstalling ADT, and it says it failed because I already have version 14.0.whatever.

How do I convince eclipse that my ADT is up to date??

Android Solutions


Solution 1 - Android

I found the answer to the problem. (I'm using Helios, but it should work anyway)

  1. Goto folder /Program Files(x86)/Eclipse/Plugins/ and make sure previous older versions of com.android.ide.eclipse.adt.package_##... are deleted (sometimes update fails to delete because of UAC). Keep the current desired version and complete the following.

enter image description here

  1. Run Eclipse as administrator or disable UAC temporarily. (windows 7)

  2. Go to HelpInstall New Software.

  3. On Work with: type https://dl-ssl.google.com/android/eclipse/ and press ENTER.

  4. Wait for Eclipse to fetch the repository. An item named Developer tools will appear in the list.
    Mark it for install, press Next and follow the steps to install the ADT tools.

  5. When finished, it will ask to restart Eclipse. Make sure you do this.

  6. When Eclipse restarts, all your Android SDK packages should show up again.

  7. Dont forget to resume UAC if you need it.

Solution 2 - Android

An option is to manually download the ADT plugin (ADT archive) required. The page is, http://developer.android.com/sdk/eclipse-adt.html. The page reveals ADT 18 is available at http://dl.google.com/android/ADT-18.0.0.zip. The link is closer to the bottom page. I needed 17 although 18 was the latest, so I modified the download URL, changing 18 to 17.

Select HelpInstall New SoftwareAdd → Choose Archive and select the location of the downloaded ADT archieve file, Choose OK.

Select the components required and proceed as required. You may get a message that the software is already installed, proceed with the installation.

Hope this helps.

Solution 3 - Android

I had the same problem. My ADT in the eclipse was 8.x version. But my app required version 12 or more. So, I decided to upgrade both the Android SDK and ADT to the latest (at this time latest ADT is 17). I was able to upgrade the SDK but not the ADT. It always complained I got the versions already but I only had 8.x. The new SDK that I just upgraded would function only with ADT 14 and above. So, I had successfully broken my android development!!

The reason why I wasn't able to upgrade my ADT to the latest was because I was using Eclipse 3.5. The newer ADT versions require 3.6 or above. This small but key bit of information was really at the bottom of the error generated by Eclipse which required scrolling down (since only the top few lines of error were displayed). You typically wouldn't scroll down since these top few lines were followed by whitespace lines :). I did not scroll and I guess I wasted about a day trying to rectify this problem. But eventually I saw those 2 up/down arrows at the right of the dialog box and I scrolled down. There it clearly mentioned ADT 17 requires Eclipse runtime 3.6 and over.

So my solution was to find a suitable ADT that would work with Eclipse 3.5. Yes, tomorrow when I am in the mood, I shall upgrade to Eclipse 3.6 or 3.7 and the boat load of plugins I have :)

Solution 4 - Android

I've just upgraded my Android SDK version, and had exactly the same issue. The 'Check For updates' Eclipse command failed because, for some reasons, Android Traceview failed to update.

My solution was to :

  • Open EclipseHelpAbout Eclipse .
  • Click Installation Details.
  • Here select all the android related lines, and update them one by one, restarting eclipse each time.

And finally it worked ( even with Helios ) !

Solution 5 - Android

In Eclipse:

HelpCheck for Updates.

Solution 6 - Android

Best option is go to open eclipse ID

Then go to HelpAbout Eclipse >> >> u will find the Installation Details button click on that

>> And now u can see the all anriod extension installed.

>> Select all or select one by one and just click the update button.

you will get the latest version from the net.

Hope these will help you all.

Solution 7 - Android

Your ADT and SDK is not up-to-date yet and Eclipse is complaining about the right stuff...

Open Android SDK Manager from toolbar and update your SDK from there. It doesn't help if you are checking Eclipse updates. Because through Eclipse you cannot check SDK updates for Android.

Button looks like this : enter image description here

Solution 8 - Android

To anyone else with this problem, my solution was just to delete the Eclipse folder, and download a new copy from scratch. I had to then re-download all plugins including adt, which worked this time round.

Solution 9 - Android

I'm hearing a common issue is that newer Android ADK versions require newer eclipse versions. Colleagues who hit this say they installed Indigo in place of older Helios versions and were able to resolve the issue this way. I have not yet done the same myself.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1002973View Question on Stackoverflow
Solution 1 - AndroidStephen LebedView Answer on Stackoverflow
Solution 2 - AndroidRobin SmithView Answer on Stackoverflow
Solution 3 - AndroidVikramView Answer on Stackoverflow
Solution 4 - AndroidalocalyView Answer on Stackoverflow
Solution 5 - AndroidBeritView Answer on Stackoverflow
Solution 6 - AndroidMahesh PatilView Answer on Stackoverflow
Solution 7 - AndroideviloneView Answer on Stackoverflow
Solution 8 - Androiduser1002973View Answer on Stackoverflow
Solution 9 - AndroidAlan CarwileView Answer on Stackoverflow