I use the following line in android ant build (project.properties):
dex.force.jumbo=true
Now we are moving from ant to Gradle. Is it possible to activate jumbo mode in Android Gradle build?
You can modify the build.gradle file to include:
build.gradle
android { dexOptions { jumboMode = true } }
Modify build.gradle in your module to add:
After that run gradle clean in the project root directory
gradle clean
I'm not sure if it's possible to set jumbo power in Gradle, but since Android Studio 0.2.4 you can enable it in Compiler -> Android DX Compiler -> Force Jumbo Mode.
I was able to do this on Windows by modifying dx.bat in the build tools and adding the default --force-jumbo option. Definitely work around - hopefully this will be covered in the Gradle plugin.
dx.bat
--force-jumbo
Test your build tools. If necessary, update and try again.