gpt4 book ai didi

java - splitapkbundle 无效。包目标未知语言 : [gr]

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

上传应用程序包失败。

在我改变依赖的版本之后

> classpath 'com.android.tools.build:gradle:3.5.0'

3.4.1 到 3.5.0

我遇到了这个错误。

我用这个方法解决了但是是真是假我不知道看下面

> bundle {
> density {
> // Different APKs are generated for devices with different screen densities; true by default.
> enableSplit true
> }
> abi {
> // Different APKs are generated for devices with different CPU architectures; true by default.
> enableSplit true
> }
> language {
> // This is disabled so that the App Bundle does NOT split the APK for each language.
> // We're gonna use the same APK for all languages.
> enableSplit false
> } }

enter image description here

最佳答案

有两种方法


1) first methods


我用这个方法解决了这个问题,但它只适用于英语

无效的 SplitApkBundle。该 bundle 针对未知语言:[gr]。

defaultConfig {
...
resConfigs "en" }

2) second method


bundle {
density {
// Different APKs are generated for devices with different screen densities; true by default.
enableSplit true
}
abi {
// Different APKs are generated for devices with different CPU architectures; true by default.
enableSplit true
}
language {
// This is disabled so that the App Bundle does NOT split the APK for each language.
// We're gonna use the same APK for all languages.
enableSplit false
}
}

关于java - splitapkbundle 无效。包目标未知语言 : [gr],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57875775/

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