无效的 splitapk 捆绑包。捆绑包目标未知语言:[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

>     } }

http://img3.mukewang.com/64b7a7720001b22810620373.jpg

慕无忌1623718
浏览 117回答 1
1回答

湖上湖

有两种方法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    }}
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java