Search code examples
androidandroid-manifestsuppress-warnings

Suppress AndroidManifest.xml minSdkVersion related warning


As recomended here http://developer.android.com/guide/practices/screens_support.html for compatibility reasons my AndroidManifest.xml contains this:

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

This generates warning in eclipse:

Attribute minSdkVersion (3) is lower than the project target API level (4)

Are there any means to suppress this warning or get rid of it any other way? It is really annoying.


Solution

  • In short, there is no built-in way to do this that I know of.

    Here's a discussion from last August.

    And here is a Xavier Durochet's response.

    It looks like you can manually remove it according to Mark Murphy's response in the first thread:

    Or, you can modify SetupTask.java, eliminate this test (lines 297-308 in the code indexed by Google Code Search), and build it into a custom version of the Android Ant extension

    There is a feature request that may deal with this, but who knows when it will be implemented.