首页 > 解决方案 > 为什么我在 Google Play 商店中收到“此应用与您的所有设备的设备不兼容”

问题描述

我们有 android 应用程序,此应用程序与您的设备不兼容。适用于所有尝试访问 Google Play 商店应用列表的设备。

开发时该应用程序正在运行,可以在任何设备上自由安装,但无法从 Play 商店安装。

在我觉得错误即将到来的地方附加 gradle 文件!

splits {
    abi {
        enable true
        reset()
        include 'arm64-v8a', 'armeabi-v7a' // i believe this is this the issue (before judging please read the p.s)
        universalApk true
   }
}

defaultConfig {
        applicationId ""
        minSdkVersion 
        targetSdkVersion 
        versionCode 1
        versionName "1"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        ndk {
            abiFilters 'x86_64','arm64-v8a', 'armeabi-v7a' // i believe this is this the issue (before judging please read the p.s)
        }
    }

当我创建 apk 时,我只得到一个 APK,我正在上传到 google play 控制台

开发时使用的手机小米和三星,它们都具有 Android 版本 8、9、10

Ps我是一名全栈开发人员,我的公司也让我负责管理 android 应用程序的开发,现在开发人员正在我手下开发应用程序,我只负责将应用程序发布到商店。当我问他们时,他们不知道这个问题,因为他们是新人

标签: androidgoogle-playbuild.gradle

解决方案


简单的解决方案,我不记得我是怎么得出这个结论的

在清单文件中,在defaultConfig对象和 ndk 中,我添加了“x86”,它解决了这个问题,现在应用程序与设备兼容

defaultConfig {
    applicationId ""
    minSdkVersion 
    targetSdkVersion 
    versionCode 1
    versionName "1"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    ndk {
        // ***************** check this line for the answer *****************

        abiFilters 'x86_64','arm64-v8a', 'armeabi-v7a', 'x86' // <------ Added 'x86'

        // ***************** check the above line for answer ****************
    }
}

推荐阅读