Reputation: 207
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
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
Reputation: 3771
You don't have this in your sdk API level-3. Download it or change target to other.
Upvotes: 4
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.
Upvotes: 4
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