Hi I have also experienced the Multiple dex problem, I have turned of incremental dexing and this fixed the issue, I am running Gradle 1.12, Android Studio 0.6.1, Android Gradle Plugin 1.11.1. I have experienced this problem from early version 0.10.
Any idea how to fix this problem? Thanks Mike On Monday, March 17, 2014 1:34:47 AM UTC, [email protected] wrote: > > Our project seems to have incremental dexing disabled and we would like to > know why, and if there is any way to enable it. > > The release notes for gradle 0.8 state that, "Incremental dexing > re-enabled (though it'll be automatically disabled in some builds for some > cases that dx doesn't support yet.)". So we figure that our project is one > of the cases which isn't supported yet. > > We have predexing enabled, and when building using the command, > ./gradlew --parallel --daemon --offline --debug assembleProductionDebug > > We see this in the output: > > /Applications/Android Studio.app/sdk/build-tools/19.0.1/dx --dex --verbose > --output > /Users/me/Documents/workspace/Android/MyProject/build/dex/production/debug > /Users/me/Documents/workspace/Android/MyProject/build/classes/production/debug > > /Users/me/Documents/workspace/Android/MyProject/build/dependency-cache/production/debug > > /Users/me/Documents/workspace/Android/MyProject/build/pre-dexed/production/debug/android-agent-2.444.0-9cb8d30d445e9cf76dfafa72c76262831b460938.jar > > > (and 25 more jars after) > > However, the incremental flag is not included here. > > We get the same output even with: > > android { > dexOptions { > incremental true > } > } > > in our build.gradle. > > Manually running the above dx command with the incremental flag causes an > "Unable to execute dex: Multiple dex files" error > > Below is the output of ./gradlew --version > ------------------------------------------------------------ > Gradle 1.10 > ------------------------------------------------------------ > > Build time: 2013-12-17 09:28:15 UTC > Build number: none > Revision: 36ced393628875ff15575fa03d16c1349ffe8bb6 > > Groovy: 1.8.6 > Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013 > Ivy: 2.2.0 > JVM: 1.6.0_37 (Apple Inc. 20.12-b01-434) > OS: Mac OS X 10.8.2 x86_64 > > We are using version 0.8.3 of the android gradle plugin > > If there is any other information which can help determine the cause of > this problem, we would be happy to provide it > > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
