Not at the moment. This is something I'd like Gradle to detect (same task
type with same inputs), but this is a ways off.

I've been thinking about allowing you to tell gradle that some tasks can be
deduplicated but I haven't made progress on this.


On Mon, Mar 31, 2014 at 2:04 PM, Cheng Yang <[email protected]> wrote:

> I have several flavors that are almost identical. The only different is
> the value of a buildConfigField.
>
>     productFlavors {
>         a {
>             flavorGroup 'store'
>             buildConfigField 'String', 'id', '"a"'
>         }
>
>         b {
>             flavorGroup 'store'
>             buildConfigField 'String', 'id', '"b"'
>         }
>
>         c {
>             flavorGroup 'store'
>             buildConfigField 'String', 'id', '"c"'
>         }
>     }
>
> However, even in this case, mergeResource is running for each buildvariant
> and takes similar time
>
> :App:mergeADebugResources 45.395s
> :App:mergeBDebugResources 43.620s
> :App:mergeCDebugResources 41.770s
>
> predex is not shared either. each buildvariant run it's own predex. I have
> to disable predex to gain some improvement.
>
> Are there any thing I can do to decrease the build time?
>
> 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.
>



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