简体   繁体   English

如何在Google Play Console中限制特定Android版本的应用

[英]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.

相关问题 如何在 google play 上将 android 应用程序限制为 64 位平台下载 - How to restrict android app to 64 bit platform download on google play 如何在Google Play中支持多个版本的Android应用 - How to support multiple versions of an Android app in Google Play 如何在 Google Play 管理中心上传特定城市的应用程序? - How upload the app for specific city in the Google Play Console? 如何在 Google Play 开发者控制台中找到 Android 应用程序的帐户所有者? - How to find account owner for Android app in Google Play Developer Console? Google Play 管理中心:如何将 Android 应用从 Alpha 版推广到 Beta 版 - Google Play Console: How to promote Android app from Alpha to Beta Google Play 控制台 Play 应用签名 - Android App Bundle 未签名 - Google Play Console Play App Signing - The Android App Bundle was not signed 如何在 Google Play 控制台中设置代码版本活动? - How to set code versions activity in Google Play Console? 如果Android版本较旧,则限制用户从Google Play下载应用 - restrict a user to download the app from google play if android version is older 如何过滤要从Google Play下载到特定设备的Android应用? - how to filter android app to be downloaded from google play to specific device? 如何限制我的android应用获得Google Play商店以外的其他发布? - How to restrict my android app to get published other than google play store?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM