android - 为什么我在 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 应用程序的开发,现在开发人员正在我手下开发应用程序,我只负责将应用程序发布到商店。当我问他们时,他们不知道这个问题,因为他们是新人
解决方案
简单的解决方案,我不记得我是怎么得出这个结论的
在清单文件中,在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 ****************
}
}
推荐阅读
- ruby-on-rails - 使用标记作为 :id 的编辑助手没有路由错误(来自 Ruby on rails 教程第三版)
- image - Flutter AssetImage 加载缓慢/白屏
- scala - 无法在 Scala.js 中执行 HmacSHA256 散列
- python - 特定类别中的数据点总数
- java - 将公共方法转换为私有方法
- python - peewee 表的有效插入权限
- java - IST(印度标准时间)的 LocalDateTime 与 ZoneOffset 以更清洁的方式
- google-maps - “未处理的异常:NoSuchMethodError:在 null 上调用了 getter 'iterator'。” 当我在颤振中使用 google_maps_polyline 插件时抛出
- java - How can I make my robot turn 90 degree to the right?
- c++ - 如何避免在 cmake 中自动链接 Qt5 库?