Thanks and sorry for the late response. I already added preDexLibraries 
false and incremental true to the main app module. My clean times went down 
to four minutes, because I got a new machine with an SSD and 16 GB RAM. I 
added two flavors so far, if I remove one, it reduces the build times by a 
few seconds. I will send the profile a bit later.

On Friday, 25 September 2015 20:30:15 UTC+1, Xavier Ducrohet wrote:
>
> Gradle has to do things a bit differently due to variants and in order to 
> provide more flexilibty, so yes right now it copies things around too much, 
> but this should be less an issue in incremental builds. We do intend to fix 
> this but it's pending on a change in Gradle.
>
> Can you tell me which task tasks the longest? Maybe send me the output of 
> --profile?
>
> On Fri, Sep 25, 2015 at 2:02 AM, Zsolt Bertalan <[email protected] 
> <javascript:>> wrote:
>
>> We are moving a fairly big project from Eclipse to Android Studio. The 
>> project has a deep dependency structure with a framework library project 
>> and an app with lots of library modules. The build times for the app 
>> project are more than 8 minutes compared to less than one minute in 
>> Eclipse. I noticed that this is mainly because we have a library with all 
>> the resources and Gradle copies these resources everywhere to every 
>> dependent module. My guess is that Eclipse uses only links for that kind of 
>> dependency.
>>
>> Is there a switch in AS/Gradle for similar behavior? Or is something 
>> planned to rectify this issue? Or should we completely refactor our project?
>>
>> -- 
>> 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] <javascript:>.
>> 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