I am using Android 4.2.2. After installing the latest SDK, when I open the eclipse I could see all the projects having the problem during the build. Following is the error i
In eclipse I did all the above and the error did not go away.
Then I simply RESTARTED eclipse and that solved it ;)
So, do the above and then restart eclipse!
Unable to resolve target 'android-16'
Make sure which version your are using and set that version in the mentioned files
To solve this problem we need to change 3 files as follows.
project.properties (target=android-18)
AndroidManifest.xml (android:targetSdkVersion="18")
\bin\AndroidManifest.xml (android:targetSdkVersion="18")
As mentioned above the 3 files has the same version number.
Also worth noting - Under Ubuntu 12.04, I installed the Android SDK Tools for API version 16, exited and restarted Eclipse and it resolved the issue without changing the target to version 16 and back to 18
To resolve the problem of "Unable to resolve target 'android-16'" set the targetSDKversion for library project for example "android-support-v7-appcompat".
That should solve it.
From the Android SDK Manager, install Android SDK Tools for API version 16.
If you're using Eclipse, try changing the target build to something higher than API 17 (Right click -> Properties -> Android -> Project Build Target).
If that removes the error, just change the target build back to API 17 afterwards.
I had this issue when importing android-support-v7-appcompat, and changing the target builds back and forth fixed my problem.