[android错误] requires API level *

Call requires API level 3 (current min is 1): android.content.res.Resources#getBoolean

参考文档:

http://stackoverflow.com/questions/10322482/android-lint-erroneously-thinks-min-sdk-version-is-1

解决方法:

AndroidManifest.xml文件:

修改或增加minSdkVersion属性

<uses-sdk

    android:minSdkVersion="3"

    android:targetSdkVersion="3" />

clean工程,问题解决。[完]

 

你可能感兴趣的:(android)