java - 无效的 splitapkbundle。捆绑目标未知语言:[gr]
问题描述
上传应用程序包失败。
在我更改依赖项的版本之后
> 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) 第一种方法
我通过使用这种方法解决了这个问题,但它只适用于英语
无效的 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
}
}
推荐阅读
- bash - 如何链接 linux shell 文件?
- google-colaboratory - Google Colab 中的渲染出错了
- nested - 在adonis2中测试嵌套效果的正确方法
- angular - 角条纹添加卡片表单只允许一个输入按钮提交
- tinymce - 固定工具栏容器和表情插件的 TinyMCE 问题
- pine-script - 如何使用 pine 编辑器在 Tradingdview 中导入交易历史?
- python - tkinter:单击按钮时如何打印列表?
- python - 使用 Dask(和/或 xarray)并行和懒惰地进行短时傅里叶变换(频谱分析)
- assembly - Push 和 pop 干扰 ret 指令
- python - 如何将 for 循环的输出通过管道传输到另一个变量中