Android error in eclipse: Unable to resolve target 'android-xx'

Neko picture Neko · Feb 17, 2013 · Viewed 34.8k times · Source

I know there are some sort-of duplicates of this, but none of the answers have been able to help me so far.

In a project shared with some friends over SVN, I always get the following error:

Unable to resolve target 'android-10'

When I change project.properties to alter the target version, the error message will remain, unless I use android-16.

I have checked my project's Android sessions to see if I could change the target there, but it only gives me 16 and 17 as options.

In my SDK Manager, I have the entire "SDK 10" branch installed, as well as several others.

Does anybody know what may be the problem here?

Answer

christophe picture christophe · Jan 15, 2014

Another method is not use the same SDK, but use the SDK in your computer.

  1. Right click project and select Android ,check target name, click 'apply' and 'ok'.
  2. Then Right click project -> Android Tools -> Fix Project Properties.
  3. Clean and build the project.

set property add sdk