[英]How to restrict App for specific Android versions in Google Play Console
I have an older app that gives errors on devices with the new Android 7.0. 我有一个较旧的应用程序,使用新的Android 7.0在设备上出错。
The app is published already and I cannot update the app actually. 该应用程序已发布,我无法实际更新该应用程序。
How can I restrict the app for specific Android versions in the Google Play Console ? 如何在Google Play控制台中限制特定Android版本的应用?
In the play console you can only block apps for regions or specific devices. 在播放控制台中,您只能阻止区域或特定设备的应用。
If you really can't upload updates your best bet is to start excluding devices of which you know they have received an Android 7 update. 如果您真的无法上传更新,那么最好的选择是开始排除您知道已收到Android 7更新的设备。 Not recommended.
不建议。
Blocking an app for an API level will require a deploy since it's done in the manifest file (in gradle config). 阻止API级别的应用程序将需要部署,因为它是在清单文件中完成的(在gradle配置中)。
<manifest xmlns:android="http://schemas.android.com/apk/res/android" ... >
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="15" />
...
</manifest>
From Supporting Different Platform versions . 从支持不同的平台版本 。
An overview of all the current API levels can be found at What is API level . 可以在什么是API级别找到所有当前API级别的概述。
When configured in Gradle it will look similar to the following snippet of a your_app_module/build.gradle
file. 在Gradle中配置时,它看起来类似于
your_app_module/build.gradle
文件的以下片段。 Note that in the final result, the compile APK this will be part of the manifest. 请注意,在最终结果中,编译APK将成为清单的一部分。
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"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.