Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Build: Dex Jumbo Mode in Gradle

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?

like image 713
endian Avatar asked Jun 26 '13 12:06

endian


2 Answers

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.

like image 98
Israel Varea Avatar answered Nov 10 '22 20:11

Israel Varea


Modify build.gradle in your module to add:

android {
    dexOptions {
        jumboMode = true
    }
}

After that run gradle clean in your project root

like image 4
nlmm01 Avatar answered Nov 10 '22 18:11

nlmm01