What is the difference between compileSdkVersion and targetSdkVersion?

前端 未结 11 2254
生来不讨喜
生来不讨喜 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

    compiledSdkVersion==> which version of SDK should compile your code to bytecode(it uses in development environment) point: it's better use last version of SDK.

    minSdkVersion==> these item uses for installation of APK(it uses in production environment). For example:

    if(client-sdk-version   <   min-sdk-versoin )
        client-can-not-install-apk;
    else
        client-can-install-apk;
    

提交回复
热议问题