1

Upload app bundle failed.

After I change version of dependencies

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

3.4.1 to 3.5.0

I'm getting this error.

I solve by this method but it is true or false I don't know see below

> 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

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Jaymin Bhadani
  • 868
  • 5
  • 10
  • 25

1 Answers1

5

there are two methods


1) first methods


I solve this issue by using this method but it is only for the English language

Invalid SplitApkBundle. The bundle targets unknown languages:[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
    }
}
Jaymin Bhadani
  • 868
  • 5
  • 10
  • 25