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?
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?
I was able to do this on Windows by changing the
dx.bat
in the build-tools and adding the--force-jumbo
parameter as a default. Definitely a work around though - hopefully this will be addressed in the Gradle plugin.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.
Modify
build.gradle
in your module to add:After that run
gradle clean
in your project rootCheck your build tools. Update if necessary and try again.
just add multiDexEnabled on default config at build.gradle file
this way also work: https://blog.csdn.net/H_O_W_E/article/details/77742907
You can modify your
build.gradle
file to include: