gpt4 book ai didi

android - Amazon app store 像Android market一样支持多个APK?

转载 作者:行者123 更新时间:2023-11-29 02:08:11 25 4
gpt4 key购买 nike

亚马逊应用商店是否像Android market一样支持多个APK上传?

最佳答案

Amazon Appstore 确实支持一个应用的多个 APK。这在 Amazon documentation 中得到确认。 .可以针对不同的平台和功能上传多个 APK,包括屏幕尺寸和密度、OpenGL 压缩格式、架构或 API 版本。

Amazon Appstore 中的多个 APK 支持与 multiple APK support in the Play Store 相同,其中应用程序 android:versionCode 对于每个上传的 APK 必须是唯一的。

您可以使用 gradle 构建脚本来 automate the generation of unique versionCode for the multiple APKs .下面是一个根据设备架构生成不同 APK 的示例:

   splits {
abi {
enable true
reset()
include 'x86', 'armeabi', 'armeabi-v7a'
universalApk true
}
}

project.ext.versionCodes = ['armeabi': 1, 'armeabi-v7a': 2, 'arm64-v8a': 3, 'mips': 5, 'mips64': 6, 'x86': 8, 'x86_64': 9]

android.applicationVariants.all { variant ->
variant.outputs.each { output ->
output.versionCodeOverride =
project.ext.versionCodes.get(output.getFilter(
com.android.build.OutputFile.ABI), 0) * 10000000 + android.defaultConfig.versionCode
}
}

关于android - Amazon app store 像Android market一样支持多个APK?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8847587/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com