For development purposes you can configure separate product flavor with minSdkVersion 21, this flavor can be build a lot faster than regular one because ART which replaced Dalvik in APIs > 20 supports multiple dex files out of the box, multidex for API <= 20 requires a lot of time to decide what classes should be placed in first dex file.
Take a look: https://developer.android.com/tools/building/multidex.html#dev-build On Friday, July 17, 2015 at 10:31:44 AM UTC+3, Valerio Santinelli wrote: > > Thanks Xavier, this is something that's definitely needed for large > projects. > > Have you got any suggestions to decrease the build time in the meanwhile? > > Cheers! > > Valerio > > Il giorno venerdì 17 luglio 2015 01:09:01 UTC+2, Xavier Ducrohet ha > scritto: >> >> It's not yet incremental though it's something we want to look at in the >> near future. >> >> On Thu, Jul 16, 2015 at 1:35 PM, Valerio Santinelli <[email protected]> >> wrote: >> >>> Hello everyone, >>> >>> is there any news on incremental dexing for projects using MultiDex? >>> I've got a quite large one where I needed to turn MiltiDex on and now it >>> takes a very long time to compile. I suppose that incremental dexing would >>> really help in reducing compile times. So is there any news on this front? >>> >>> Cheers! >>> >>> Valerio Santinelli >>> >>> -- >>> 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.
