Remove Androidmanifest.xml uses-sdk Warning method

Source: Internet
Author: User

we often find this warning in Androidmanifest.xml when developing an app warining: "Not targeting the latest versions of Android; Compatibility modes apply. Consider testing and updating this version. Consult the Android.os.Build.VERSION_CODES Javadoc for details. "

Android Runtime and Dalvik will decide whether to work under "Compatibility Mode" based on target SDK version, which is to turn off the state of the new mechanisms and experience optimizations in the new version. targetsdkversion If the setting is low, it is equivalent to shutting down all the new features and mechanisms of the high version, including "Screen adaptive", "Hardware acceleration".

My understanding is that this warning reminds us that there is no match using the latest SDK version, which may cause the app to be unable to take advantage of the latest features or functionality on the latest system, and the way to get rid of this warning is to uses-sdk The android:targetsdkversion attribute in the tag changes to the latest SDK version on your computer , such as the latest SDK on my Computer is android4.4, It's version number is , then I should write "android:targetsdkversion=", so that will not be an error, if your computer's SDK is android4.0, then android:targetsdkversion= "" "can be changed .

of course, we can ignore this warning, after all, the market Android version is still more than the development of the latest version of the SDK for a period of time, we have to adapt to the high version, but also for a period of time may be loaded with the corresponding Android High-version phones, so we can set android:targetsdkversion as the latest or most popular version of the current market. In addition to the development of the APP is also required to conduct a full range of testing:www.ineice.com.


Remove Androidmanifest.xml uses-sdk Warning method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.