Unable to resolve target 'android-XX'
- Right click on your project.
- Go to Properties.
- Choose Android on the left side.
- On the right, you can see a list of Android API versions. Choose the proper version (Android API 15).
- Click Apply.
If you don't see the proper version, click on the Window menu, go to Android SDK Manager and download Android API 15 (Android 4.0.3). Repeat the steps above.
In the picture below, you can see API 16; not 15. You can download API 15 using Android SDK Manager. If you already have it, click the check box next to Android 4.0.3, click Apply and then OK.
To download an SDK from the SDK manager in Eclipse, click on the Window menu, Android SDK Manager. You should see the following window. Check Android 4.0.3 which is API 15, and click Install.
Unable to resolve target 'android-16'
I have had the same problem, after an update I got a similar error.
It can be fixed to manually edit the project.properties
file and update the android-16
part to the latest one you have installed. In your current case that is android-17
.
I guess it can be configured using Android ADT as well, but I could not figure it out and this was quicker
Furthermore, you have to update your manifest as well, make sure you have android:targetSdkVersion
set to 17.
Unable to resolve target 'android-17'
You can right click on your project -> properties -> Android -> Select the Target android version you want to compile and Apply !
If you don't have any target versions to compile, you probably need to download them on your SDK Manager
Error:Unable to resolve target 'android-2'
Problem is not in your Java or XML code. You have to change the target in your default.properties
file in your project.
Here you have to change the following line:
target=android-2
Here the digit 2 represents the API level of the Platform you want to run your application.
So use the value of the API you want to run.
Like if I run my application on Android 2.3 then I use target=android-9
Refer : API Levels
Unable to resolve target 'android-18' error
In ``default.properties` file .
set target=android-18
.
Check also that you installed this API level and check it in properties window, like:
In my case 17 is selected
Unable to resolve target 'android-15' until the SDK is loaded
In Eclipse go to window --> Android SDK manager and in sdk manager check whether you have installed sdk for api level 15 or not. And also right click on your project go to properties there is Android tab on left hand side pannel. Click on it that will show you project build target. Make it to higher version.
Importing project gave Unable to resolve target 'android-7'
Well, yes that is your problem. You don't have the API level 7 downloaded. You can right click the project and go properties->android and select another available API. As long as you don't change the min sdk version in your manifest you are still targeting as many devices as before.
<uses-sdk android:minSdkVersion="7"/>
Update
You don't have to do this, but you can get the older APIs on the SDK Archives page
I don't know if there is any official source for the next statement but that is what I found while working. If anybody can complete this with a better answer I would appreciate it very much.
You can compile the code with a newer SDK version as long as you don't use any code not compatible to the previous ones.
Example:
I want my app to be available for API level 7. But i only have API level 15 installed. As long as I keep the minSdkVersion="7" in my Manifest and don't use any resource not available in the previous APIs the app will work just fine on my targeted devices.
Unable to resolve target 'android-8' after importing libraries
I had to open up SDK manager and simply installed API level 8. That solved my problem. Vote up the user in the comments that gave me the solution :)
How to solve [xX][mM][lL] is not allowed error
Leave out the <?xml ...>
XML declaration alltogether. This error is reported when an XML declaration (which is syntactically an SGML processing instruction) is found in XML other than at the beginning of the XML. So I'm guessing the XML is composed/appended to some other XML in your app (it's impossible to say without additional info). An XML declaration is optional anyway; it's only used to tell a parser the encoding of the document, and that markup should be parsed according to XML rules (rather than HTML or generic SGML rules). You also might want to double-check you put no invisible garbage characters (by string operations in your app code) into your XML.
Related Topics
Determine Addaction Click for Android Notifications
Dynamic Listview Adding "Load More Items" at the End of Scroll
Sliding Drawer Appear in All Activities
Create and Share a File from Internal Storage
Launch Activities from Different Package
Launch Android Application Without Main Activity and Start Service on Launching Application
How to Re-Sign an .Apk with a Different Certificate Than What It Came With
How to Print PDF Using Android 4.4 Printing Framework
How to Store Images Using Sharedpreference in Android
Adding Google Play Services Version to Your App's Manifest
Set the Layout Weight of a Textview Programmatically
Get List of Photo Galleries on Android
Error Strictmode$Androidblockguardpolicy.Onnetwork
How to Save Image in Android Gallery
Send Data Back to the Script Which Started the Activity via Adb Shell Am Start