上传应用 bundle 包失败。

在我更改依赖版本之后

> 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
>     } }

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

最佳答案

有两种方法



我使用此方法解决了此问题,但这仅适用于英语

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

defaultConfig {
    ...
    resConfigs "en" }


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
    }
}

07-28 02:31