Android Studio - Compiler -> Android DX Compiler

139 views
Skip to first unread message

Nicholas Campion

unread,
Aug 28, 2013, 12:17:02 PM8/28/13
to adt...@googlegroups.com
It looks like the settings in this panel don't actually affect the builds that are running from within Android Studio.  I adjusted the Max Heap value for quite a bit before realizing that it had no impact on the underlying build (which also takes a while to fail).  I'm putting this out here as a warning to others looking for an answer. I had to manually edit the dx file in the version of the sdk included with the studio.

Nick

Xavier Ducrohet

unread,
Aug 28, 2013, 7:22:03 PM8/28/13
to adt...@googlegroups.com
you can (or will, not sure if this has been released yet) configure it through the DSL with:

android {
   dexOption {
     javaMaxHeapSize = ""
   }
}

The stirng value gets prefixed with -JXmx and passed to dx.



On Wed, Aug 28, 2013 at 9:17 AM, Nicholas Campion <cam...@gmail.com> wrote:
It looks like the settings in this panel don't actually affect the builds that are running from within Android Studio.  I adjusted the Max Heap value for quite a bit before realizing that it had no impact on the underlying build (which also takes a while to fail).  I'm putting this out here as a warning to others looking for an answer. I had to manually edit the dx file in the version of the sdk included with the studio.

Nick

--
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/groups/opt_out.



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

Please do not send me questions directly. Thanks!
Reply all
Reply to author
Forward
0 new messages