Android Min SDK Version vs. Target SDK Version

后端 未结 9 941
别那么骄傲
别那么骄傲 2020-11-22 04:33

When it comes to developing applications for Android, what is the difference between Min and Target SDK version? Eclipse won\'t let me create a new project unless Min and Ta

9条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 05:08

    android:minSdkVersion

    An integer designating the minimum API Level required for the application to run. The Android system will prevent the user from installing the application if the system's API Level is lower than the value specified in this attribute. You should always declare this attribute.

    android:targetSdkVersion

    An integer designating the API Level that the application is targetting.

    With this attribute set, the application says that it is able to run on older versions (down to minSdkVersion), but was explicitly tested to work with the version specified here. Specifying this target version allows the platform to disable compatibility settings that are not required for the target version (which may otherwise be turned on in order to maintain forward-compatibility) or enable newer features that are not available to older applications. This does not mean that you can program different features for different versions of the platform—it simply informs the platform that you have tested against the target version and the platform should not perform any extra work to maintain forward-compatibility with the target version.

    For more information refer this URL:

    http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

提交回复
热议问题