Reputation: 2672
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).
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.
Upvotes: 0
Views: 11213
Reputation: 9993
Try this:
I found the answer to the problem. (I'm using Helios, but it should work anyway)
Run Eclipse as administrator. (windows 7)
Go to Help → Install New Software.
On Work with: type https://dl-ssl.google.com/android/eclipse/ and press ENTER.
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.
When finished, it will ask to restart Eclipse. Make sure you do this.
When Eclipse restarts, all your Android SDK packages should show up again.
Upvotes: 4
Reputation: 20563
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.
Upvotes: 15