Hesam
Hesam

Reputation: 53600

android, Manifest shows error for android:targetSdkVersion

I have defined following line in My manifest file but an error occurs.

<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="8" />

and the error message is:

error: No resource identifier found for attribute 'targetSdkVersion' in package 'android'

How can I handle this problem?

Upvotes: 1

Views: 4731

Answers (2)

kenj
kenj

Reputation: 130

In addition to above, make sure you delete the project's bin directory too so it's rebuilt with the updated android build target.

Upvotes: 1

anujprashar
anujprashar

Reputation: 6335

android:targetSdkVersion was added in api level 4 which is android 1.6. Make sure you are compiling your project with 1.6 and above and you have not set 1.5 as build target.

Upvotes: 16

Related Questions