更改 compileSdkVersion 会影响应用程序在运行时的行为吗?
Does changing the compileSdkVersion affect the behavior of the app at runtime?
所以我知道 compileSdkVersion
是应用程序编译所针对的 API 的版本。 targetSdkVersion
是应用程序测试的版本。
我使用的库需要更高 API 版本中存在的一些属性,我需要为此更新 compileSdkVersion
否则我会遇到构建错误。但我不想更新支持库或 targetSdkVersion 的版本。这会对应用程序的其他功能的行为方式产生影响吗?我可以期望在发布应用程序时确保其他功能不会中断吗?
Will this have an impact on how the other features of the app behave?
它只能影响一个图书馆,它需要更高的 API。在运行时你可以检查版本 API 并跳过一些操作,但你的情况在一个盒子(lib)中,没办法。但是,类 的某些内容可能会在 android 支持库的下一版本中被弃用甚至删除。
Iak Lake 写了一个关于 compileSdkVersion
vs minSdkVersion
vs targetSdkVersion
的好话题。 Here is a link.
所以我知道 compileSdkVersion
是应用程序编译所针对的 API 的版本。 targetSdkVersion
是应用程序测试的版本。
我使用的库需要更高 API 版本中存在的一些属性,我需要为此更新 compileSdkVersion
否则我会遇到构建错误。但我不想更新支持库或 targetSdkVersion 的版本。这会对应用程序的其他功能的行为方式产生影响吗?我可以期望在发布应用程序时确保其他功能不会中断吗?
Will this have an impact on how the other features of the app behave?
它只能影响一个图书馆,它需要更高的 API。在运行时你可以检查版本 API 并跳过一些操作,但你的情况在一个盒子(lib)中,没办法。但是,类 的某些内容可能会在 android 支持库的下一版本中被弃用甚至删除。
Iak Lake 写了一个关于 compileSdkVersion
vs minSdkVersion
vs targetSdkVersion
的好话题。 Here is a link.