MinSdkVersion: What is the difference between maxSdkVersion targetSdkVersion and target? targetsdkversion

Source: Internet
Author: User

MinSdkVersion: What is the difference between maxSdkVersion targetSdkVersion and target? targetsdkversion

MinSdkVersion

Description: The minimum sdk version supported by the app.

Purpose: If the mobile phone SdkVersion is smaller than the minSdkVersion defined in the app, the android system does not allow the app to be installed.

Location: AndroidManifest. xml

Default Value: 1

Check time: app Installation

MaxSdkVersion

Description: The maximum sdk version supported by the app.

Purpose: If the mobile phone SdkVersion is greater than the maxSdkVersion defined in the app, the android system does not allow the app to be installed.

Location: AndroidManifest. xml

Default Value: None

Check time: app installation (not detected after Android 2.0.1)

TargetSdkVersion

Description: Target SdkVersion.

Purpose: The ID has been fully tested in the specified SdkVersion. The Android system will not perform compatibility processing on this version.

If the targetSdkVersion = 16 app runs on a mobile phone with SdkVersion = 16, the Android system will not perform any compatibility processing, thus improving the performance.

If the targetSdkVersion = 16 app runs on a mobile phone with SdkVersion = 17, the Android system needs to perform compatibility processing to ensure that the app still runs as 16

If the targetSdkVersion = 16 app runs on a mobile phone with SdkVersion = 15, an error may occur. Therefore, at least ensure that the app passes the test on the minSdkVersion mobile phone.

Location: AndroidManifest. xml

Default Value: minSdkVersion

Check time: Runtime

Target

Description: build target.

Purpose: SdkVersion used to compile and build the project

Definition location: project. properties

Default Value: None

Check time: compile and generate. apk

 

 

Attached Android SdkVersion

Description: Android SDK version.

Query: Mobile Phone settings-about mobile phone-Android version

Relationship between the Android platform VERSION (Build. VERSION. SDK), api version (Build. VERSION. SDK_INT), and VERSION code:

 

 

Related Article

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.