Warning about <uses-sdk> in Manifest? Warning about <uses-sdk> in Manifest? android android

Warning about <uses-sdk> in Manifest?


Just add the android:targetSdkVersion="8" attribute to the uses-sdk tag. If you just want to get rid of the warning, that will do it, safely.

If you want to know more, here's a description of what that attribute means,

http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#target

The docs are a little fuzzy, but what they say is that the target SDK version is used to determine if android should enable compatibility layers. for example, If your min SDK was 8, but your target SDK was 14, you are telling android that while there's no reason it shouldn't work on version 8, you've only tested on 14. Therefore, if there any compatibility settings to enable between level 8 and 14, they can be set. note that this attribute may actually do nothing depending on the actual min / target values.

If you set min SDK == target, you are essentially saying you have tested on the lowest API level you claim to support, which is a good thing.


I have one walkaround solution.

  • Copy the manifest file, paste in your desktop.
  • Delete the manifest file in your project
  • Copy the manifest file from your desktop
  • And Paste in your project.

Worked for me as the warning disappeared.