Not targeting the latest versions of Android

In androidmanifest.xml, the following warnings often appear:
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 in “compatibility mode” according to the target SDK version. The so-called compatibility mode is to turn off all kinds of new mechanisms and experience Optimization in the new version. If targetsdkversion is set very low, it is equivalent to turning off all new features and mechanisms of advanced versions, including screen adaptation and hardware acceleration
in order to ensure the compatibility of different versions and use new features in time

Targetsdkversion continues to improve with the release of the latest version of Android to ensure a complete experience on all Android devices

For example:

Before modification:
1

After modification:
1

target:

So to get rid of the warning, you just have to android:targetSdkVersion= The 18 in “18” should be changed to 19

Similar Posts: