MultiDex Support with Incremental Dexing support

294 views
Skip to first unread message

Adrian

unread,
Oct 31, 2014, 9:34:01 PM10/31/14
to adt...@googlegroups.com
Are there any plans in the future to somehow combine the two? I understand why they are mutually exclusive but for dev time, my build time goes from around 20-30 seconds to a minute plus now when using the multi-dex option. I don't mind using the multi-dex options for a release build but for developing it's quite an annoying wait each time.

Xavier Ducrohet

unread,
Nov 1, 2014, 2:08:59 PM11/1/14
to adt...@googlegroups.com
We are preparing a blog post to explain a few things, but the gist of it is that you can create a variant that's minSdkVersion 21+ and this variant will be be able to build faster because it doesn't have to compute the list of classes to put in the main dex file. It'll do pre-dexing and won't combine each dex file together so it's faster.
Of course, this means you need to test on a 21+ device/emulator.

Look at the multiDex sample, build the "ics" and "lollipop" variants and see how the tasks differ.


On Fri, Oct 31, 2014 at 6:34 PM, Adrian <amch...@gmail.com> wrote:
Are there any plans in the future to somehow combine the two? I understand why they are mutually exclusive but for dev time, my build time goes from around 20-30 seconds to a minute plus now when using the multi-dex option. I don't mind using the multi-dex options for a release build but for developing it's quite an annoying wait each time.

--
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 adt-dev+u...@googlegroups.com.
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!

Adrian Chang

unread,
Nov 1, 2014, 2:50:06 PM11/1/14
to adt...@googlegroups.com
Alright thank you will give it a shot.


Adrian
(206) 588-5957


You received this message because you are subscribed to a topic in the Google Groups "adt-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adt-dev/f4GaRbkLRXc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adt-dev+u...@googlegroups.com.

Felipe Lima

unread,
Nov 4, 2014, 11:53:47 AM11/4/14
to adt...@googlegroups.com
Xavier, where can I find these samples? I don't see any for the API 21 SDK.

Thanks

Xavier Ducrohet

unread,
Nov 4, 2014, 12:08:53 PM11/4/14
to adt...@googlegroups.com
Our samples are always at the bottom of this page http://tools.android.com/tech-docs/new-build-system

We also now have some official documentation here: http://developer.android.com/tools/building/multidex.html
Reply all
Reply to author
Forward
0 new messages