Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 341
Dmitry Ryadnenko Avatar asked Jan 27 '11 09:01

Dmitry Ryadnenko


2 Answers

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.

like image 181
Brian Cooley Avatar answered Nov 09 '22 09:11

Brian Cooley


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

like image 28
Waynn Lue Avatar answered Nov 09 '22 10:11

Waynn Lue