Android Build: Dex Jumbo Mode in Gradle Android Build: Dex Jumbo Mode in Gradle android android

Android Build: Dex Jumbo Mode in Gradle


You can modify your build.gradle file to include:

android {    dexOptions {        jumboMode = true    }}

Please note that this option is only supported by the now deprecated DX compiler. The D8 compiler does not support this option. From AGP 7.0 (released with Android Studio 2020.3.1 - Arctic Fox) DX support is removed completely.


Modify build.gradle in your module to add:

android {    dexOptions {        jumboMode = true    }}

After that run gradle clean in your project root


I'm not sure if it possbile to set force jumbo in Gradle, but since Android Studio 0.2.4 you can enable it in Compiler -> Android DX Compiler -> Force Jumbo Mode.