What is the difference between compileSdkVersion and targetSdkVersion?

前端 未结 11 2255
生来不讨喜
生来不讨喜 2020-11-22 10:44

I have looked at the documentation for building with Gradle, but I\'m still not sure what the difference between compileSdkVersion and targetSdkVersion

11条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 11:28

    Quick summary:

    For minSDKversion, see latest entry in twitter handle: https://twitter.com/minSdkVersion

    TargetSDKversion: see latest entry in twitter handle: https://twitter.com/targtSdkVersion or use the latest API level as indicated at devel https://developer.android.com/guide/topics/manifest/uses-sdk-element.html

    Compiled version: make it same as TargetSDKversion

    maxSdkVersion: advice from Android is to not set this as you do not want to limit your app to not perform on future android releases

提交回复
热议问题