Why target newer SDKs?
通俗解读
解释了为什么要以近期 API 级别为目标:新的 Android 变更带来了安全性、性能和用户体验的提升,其中某些变更仅适用于通过 targetSdkVersion 声明支持的应用,同时应用仍可在较早版本上运行。
- 某些 Android 变更仅适用于通过清单属性 targetSdkVersion(目标 API 级别)明确声明支持的应用。
- 以近期的 API 级别为目标可以让用户从这些改进中受益,并让您的应用可以使用最新的平台特性,同时仍能在较旧的 Android 版本上运行。
- 从 Android 10(API 级别 29)开始,如果应用的目标平台是 Android 5.1(API 级别 22)或更低版本,用户在首次启动时会看到警告。
- 您可以在应用的 Gradle 文件中,或通过清单中的 android:targetSdkVersion 属性(<uses-sdk>)确认或更改 targetSdkVersion。
官方原文摘录
Every new Android version introduces changes that bring security and performance improvements and enhance the Android user experience. Some of these changes only apply to apps that explicitly declare support through their targetSdkVersion manifest attribute (also known as the target API level). Configuring your app to …
阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规
开发者关于此条款的案例
暂无案例。