Remove Androidmanifest.xml uses-sdk Warning method

Source: Internet
Author: User

We often found this warning in Androidmanifest.xml when developing the 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 is a reminder that we do not have a 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 remove this warning is to put the USES-SDK tag in android: Targetsdkversion property to the latest SDK version on your computer, such as the latest SDK on my computer is android4.4, its version number is 19, then I should write "android:targetsdkversion=" 19 ", This will not be an error, if your computer's SDK is android4.0, then android:targetsdkversion= "14" can be changed.

Of course, we can ignore this warning, after all, the market on the Android version is still slower 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 wait a while to load the corresponding Android version of the mobile phone, so we can be android: Targetsdkversion is the newest 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.