我有一个较旧的应用程序在使用新的 Android 7.0 的设备上出错。
该应用程序已经发布,我实际上无法更新该应用程序。
如何在 Google Play 管理中心限制特定 Android 版本的应用程序?
最佳答案
在 Play 控制台中,您只能针对区域或特定设备阻止应用程序。
如果您确实无法上传更新,最好的办法是开始排除您知道已收到 Android 7 更新的设备。不推荐。
为 API 级别阻止应用程序将需要部署,因为它是在 list 文件中完成的(在 gradle 配置中)。
<manifest xmlns:android="http://schemas.android.com/apk/res/android" ... >
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="15" />
...
</manifest>
来自 Supporting Different Platform versions .
可以在 What is API level 找到所有当前 API 级别的概述。 .
在 Gradle 中配置时,它看起来类似于 your_app_module/build.gradle
文件的以下 fragment 。请注意,在最终结果中,编译 APK 将成为 list 的一部分。
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "your.app.id.here"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "0.1.0"
}
关于android - 如何在 Google Play 控制台中限制特定 Android 版本的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41766186/