I'm getting a warning on my in the Manifest.
<uses-sdk> tag should specify a target API level (the highest verified version; when running on later versions, compatibility behaviors may be enabled) with android:targetSdkVersion="?"
What does this mean?
I've got
<uses-sdk android:minSdkVersion="7" />
In it at the moment. (Android 2.1)
It lets the Android platform describe the maximum framework API revision that it supports. It lets applications describe the framework API revision that they require. It lets the system negotiate the installation of applications on the user's device, such that version-incompatible applications are not installed.
targetSdkVersion is a property that tells the system for which Android version the app was designed and tested on.
The Android SDK consists of an emulator, development tools, sample projects with source code, and the required libraries to build Android applications. Let's look at the key components one by one.
The Android SDK is by default forward compatible but not backward compatible — this means that an app that is built with and supports a minimum SDK version of 3.0 can be installed on any device running Android versions 3.0 and upwards — but not on devices running Android versions below 3.0.
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.
Worked for me as the warning disappeared.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With