Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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??

like image 459
user1002973 Avatar asked Oct 21 '11 17:10

user1002973


People also ask

How do I know my ADT version in Eclipse?

Go to Eclipse near Apple symbol on top Left. A window opens and here click on Green Android Robot icon. A next winodw opens in which you can find the version of Android ADT.


2 Answers

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

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

  3. Go to HelpInstall New Software.

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

  5. 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.

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

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

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

like image 189
Stephen Lebed Avatar answered Sep 26 '22 01:09

Stephen Lebed


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.

like image 22
Robin Smith Avatar answered Sep 23 '22 01:09

Robin Smith