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.
-
update ADT is not equal to update Android SDK. Try Eclipse Software Update.Raptor– Raptor2013年02月18日 09:27:39 +00:00Commented 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 PluginChinmoy Debnath– Chinmoy Debnath2013年02月18日 09:30:08 +00:00Commented Feb 18, 2013 at 9:30
2 Answers 2
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.
2 Comments
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.