Priyanka
Priyanka

Reputation: 207

error in eclipse "Type Unable to resolve target 'android-3' "

Imported a sample project , trying to run the app but getting the errror "Type Unable to resolve target 'android-3'" is this build path problem??

Upvotes: 2

Views: 5760

Answers (4)

Singh Sudip
Singh Sudip

Reputation: 11

The target api for the project has not been set. You need to set those from the android project properties. Right click on project and select the properties Or select the project and press ALT + ENTER key. A new properties window will open. Then select Android in the properties window and set the required target API from the list. Apply this settings and your problem will be solved.

Upvotes: 1

Geralt_Encore
Geralt_Encore

Reputation: 3771

You don't have this in your sdk API level-3. Download it or change target to other.

Upvotes: 4

James McCracken
James McCracken

Reputation: 15776

The problem is it's looking for an Android API of level 3 of which you either haven't downloaded or aren't targeting.

  • Right click on your project and go to Properties->Android and select your API 3 Android version. If you don't have this version, you can select whatever API level you like. Hit apply and okay. Now right click on your project and go to Android Tools -> Fix Project Properties.

Upvotes: 4

Gregor Weber
Gregor Weber

Reputation: 688

Did you install the Android SDK API 3? As far as I know the error basically says that in the build path you configured it to use API 3 but you don't have it installled.

An alternative would be, if you have another API installed, juts to configure the project to use that API in the build path (backwards compatibility is given).

Upvotes: 2

Related Questions