Android Build: Dex Jumbo Mode in Gradle

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?

+44
android android-build
Jun 26 '13 at 12:31 on
source share
5 answers

You can modify the build.gradle file to include:

 android { dexOptions { jumboMode = true } } 
+116
Feb 28 '14 at 13:08
source share

Modify build.gradle in your module to add:

 android { dexOptions { jumboMode = true } } 

After that run gradle clean in the project root directory

+4
Jun 24 '15 at 4:35
source share

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.

0
Aug 15 '13 at 15:39
source share

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.

0
Oct 11 '13 at 14:57
source share

Test your build tools. If necessary, update and try again.

0
Feb 18 '16 at 9:30
source share



All Articles