android - 关于 Google Play 中更新的 Android 应用程序的新要求

标签 android google-play android-sdk-tools

Google Play 最近向 Android 开发者发出警告,要求他们通过三项新更改更新他们的应用:https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html

我有一个关于将目标 SDK 更新到版本 26 的问题。当我对其中一个应用程序进行此更改时,开发人员控制台向我显示一条警告,指出此新 APK 不支持 x 数量的设备,因为它不符合某些 SDK 版本标准。由于该应用程序没有太多活跃安装,所以我继续使用它。

现在我需要为我的另一个拥有大量活跃用户的应用程序执行此操作。更改目标 SDK 版本会对使用低端 Android 操作系统或旧设备型号的用户产生影响吗?

有人可以从现有用户和新用户的角度解释一下在进行此类更改时可能会遇到的问题吗?

希望任何有信息的人能够提供一些澄清,特别是已经做出这些更改的 Android 应用开发者。

最佳答案

从用户角度:没有问题,因为改变目标SDK并不意味着改变minSDK。

对于作为开发人员的您来说:根据当前和 future 目标 SDK 之间的差距,可能需要做很多工作,因为运行时将根据目标 SDK 在幕后处理不同的事情(例如权限处理、使用某些库、UI 组件的渲染)。

引用 <uses-sdk> 的文档

As Android evolves with each new version, some behaviors and even appearances might change. However, if the API level of the platform is higher than the version declared by your app's targetSdkVersion, the system may enable compatibility behaviors to ensure that your app continues to work the way you expect. You can disable such compatibility behaviors by specifying targetSdkVersion to match the API level of the platform on which it's running. For example, setting this value to "11" or higher allows the system to apply a new default theme (Holo) to your app when running on Android 3.0 or higher and also disables screen compatibility mode when running on larger screens (because support for API level 11 implicitly supports larger screens). There are many compatibility behaviors that the system may enable based on the value you set for this attribute. Several of these behaviors are described by the corresponding platform versions in the Build.VERSION_CODES reference.

关于android - 关于 Google Play 中更新的 Android 应用程序的新要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48366440/

相关文章:

android - Android 小部件类型示例

java - 在tablelayout Android中安排单选按钮

android - WebView : how to avoid security alert from Google Play upon implementation of onReceivedSslError

android - 在通知工作之前是否需要将 APK 上传到 Google Play?

android - 我们现在应该使用 Java 8 进行 Android 开发吗?

android - 添加额外的图像/图标到 CardFragment (Android Wear)

Android Market 将我的应用程序隐藏到某些平板电脑(如 Nexus 7)

android - 请安装包 : 'Android Support Library'

java - AlertDialog 类型不兼容错误

android - Flutter 运行错误 : You have not accepted the license agreements