gpt4 book ai didi

android - 更改 compileSdkVersion 会影响应用程序在运行时的行为吗?

转载 作者:行者123 更新时间:2023-12-02 00:55:53 27 4
gpt4 key购买 nike

所以我知道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 的好话题对比 minSdkVersion对比 targetSdkVersion . Here is a link .

关于android - 更改 compileSdkVersion 会影响应用程序在运行时的行为吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54315295/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com