Incremental is disabled if a jar file changed. If a class file changed it's
fine.

So if any of your dependencies changed then incremental is disabled.


On Sun, Mar 16, 2014 at 6:34 PM, <[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.
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

-- 
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.

Reply via email to