Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Unable to resolve target 'android-2'

Tags:

android

[2011-02-10 00:14:34 - newproject] Unable to resolve target 'android-2'


and the newproject java and xml files does't have an any error but the project is in error from when i import what problem in it


like image 869
ezhil Avatar asked Feb 09 '11 06:02

ezhil


1 Answers

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

like image 183
Vikas Patidar Avatar answered Sep 22 '22 19:09

Vikas Patidar