Skip to content Skip to sidebar Skip to footer

Android Gradle Dexexception : Library Dex Files Are Not Supported In Multi-dex Mode

My application reached the 64k limit recently. I tried to create multiple dexes using --multidex option by adding : exec java $javaOpts -jar '$jarpath' --multi-dex '$@' in dx bat

Solution 1:

The --multi-dex option to dx is incompatible with pre-dexing library projects. So if your app uses library projects, you need to disable pre-dexing before you can use --multi-dex.

That said, I have no idea why this occurred to you at runtime. This clearly is a build time failure exposed by the dx tool. Maybe what happened to you is that parts of the app were rebuild when running from the IDE, triggering the build error.

Post a Comment for "Android Gradle Dexexception : Library Dex Files Are Not Supported In Multi-dex Mode"