android – Suppress AndroidManifest.xml minSdkVersion related warning-ThrowExceptions

Exception or error:

As recomended here 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.

How to solve:

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, 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.


The answer from 2011 is no longer accurate. It was fixed in ADT 17 according to this bug.


This warning is an usual one. I am using minSdkVersion to support Android 1.5 and I am building for Android 1.6 to support small screens. You can build your application with the latest Android 2.3 library, but still support a lower version.

Leave a Reply

Your email address will not be published. Required fields are marked *