AndroidManifest.xml的targetSdkVersion 与 project.properties中target

(1)minSdkVersion与maxSdkVersion :在安装程序的时候,如果目标设备的API < minSdkVersion,或者目标设备的API > maxSdkVersion

程序将无法安装。一般来说没有必要设置maxSdkVersion。

(2) targetSdkVersion  :如果设置了此属性,那么在程序执行时,如果目标设备的API版本正好等于此数值,他会告诉Android平台:此程序在此

版本已经经过充分测试,没有问题。不必为此程序开启兼容性检查判断的工作了。   


(3)在project.properties中的target是指在编译的时候使用哪个版本的API进行编译。开发时工程SDK版本和target的值是保持一致的,无论修改

哪一个另外一个值相应改变。

android:targetSdkVersion

  An integer designating the API Level that the application targets. If not set, the default value equals that given to minSdkVersion.

This attribute informs the system that you have tested against the target version and the system should not enable any compatibility

behaviors to maintain your app's forward-compatibility with the target version. 

原文地址:https://www.cnblogs.com/yuyutianxia/p/3491616.html