[英]How to restrict android app to 64 bit platform download on google play
I have an app that works only in 64 bit configuration.我有一个仅适用于 64 位配置的应用程序。 I've put in the following in the abi filters我在 abi 过滤器中加入了以下内容
splits{
abi {
enable true
reset()
include "x86_64", "arm64-v8a"
universalApk true
}
}
But when I uploaded the app for alpha track I saw this :但是当我上传 alpha 轨道的应用程序时,我看到了这个:
How do I make sure my app is not available for download for something other than 64 bit device?如何确保我的应用程序不可用于 64 位设备以外的其他设备下载?
Have you tried to exclude these builds?您是否尝试排除这些构建?
"exclude Specifies a comma-separated list of ABIs that Gradle should not generate separate APKs for. Use exclude if you want to generate APKs for most ABIs, but need to exclude a few ABIs that your app doesn't support." “exclude 指定一个逗号分隔的 ABI 列表,Gradle 不应为其生成单独的 APK。如果您想为大多数 ABI 生成 APK,但需要排除一些您的应用不支持的 ABI,请使用 exclude。”
https://developer.android.com/studio/build/configure-apk-splits https://developer.android.com/studio/build/configure-apk-splits
Set universalApk false
, it will build one APK for each platform;设置universalApk false
,它会为每个平台构建一个APK;
then just upload the arm64-v8a
package ( x86_64
is irrelevant).然后只需上传arm64-v8a
包( x86_64
无关紧要)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.