I am using following line in android ant build (project.properties):
dex.force.jumbo=true
Now we are migrating from ant to Gradle. Is it possible to get jumbo mode active in Android Gradle build?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With