0

I was working on an Android Project that uses Facebook SDK. Everything was fine until today. When I tried to run the project it gives the following error.

Unable to resolve target 'android-10' until the SDK is loaded

Although I have SDK 2.3.3 (Level 10), it doesn't appear in the project properties. In properties of Eclipse it says,

This Android SDK requires Android Developer Toolkit version 21.1.0 or above. Current version is 21.0.0.2012年10月31日-0-17. Please update ADT to the latest version.

However, according to Android SDK Manager, I already installed the latest version (see image below).

enter image description here

How can I resolve the problem? Any help would be appreciated, thanks in advance.

Edit:

I'm using Mac OSX 10.8, and I tried restarting both eclipse and os.

asked Feb 18, 2013 at 9:24
2
  • update ADT is not equal to update Android SDK. Try Eclipse Software Update. Commented Feb 18, 2013 at 9:27
  • You can download the adt from this link or can update the eclips with new software update. Installing the Eclipse Plugin Commented Feb 18, 2013 at 9:30

2 Answers 2

15

You have updated the android sdk but not updated the adt to match with it. The latest ADT release is 21.1.0 and you need to get this.

Go to eclipse> help> Check for updates.

It should list the latest update of adt. If it doesn't work, try this :

  • go to eclipse> help> Install new software

  • Click on add

  • add this url : https://dl-ssl.google.com/android/eclipse/

  • It will list the updates available- which should ideally be adt 21.1.0 (latest)

  • install the latest adt and everything should be fine.

answered Feb 18, 2013 at 9:28
Sign up to request clarification or add additional context in comments.

2 Comments

I can't believe I did such a stupid mistake, thanks for detailed answer. It worked perfectly.
I'm surprised this answer didn't get more upvotes! If I could I would give you 10!
4

Try this:

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

  1. Run Eclipse as administrator. (windows 7)

  2. Go to Help → Install 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.

answered Feb 18, 2013 at 9:32

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.