上传应用程序包失败。当我更改依赖项的版本后> 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> } }
1 回答
湖上湖
TA贡献2003条经验 获得超2个赞
有两种方法
1)第一种方法
我使用此方法解决了这个问题,但它仅适用于英语
无效的 SplitApkBundle。该捆绑包针对未知语言:[gr]。
defaultConfig {
...
resConfigs "en" }
2)第二种方法
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
}
}
添加回答
举报
0/150
提交
取消