Closed GoogleCodeExporter closed 9 years ago
You can provide any JVM arguments you want to dex.
See http://jayway.github.io/maven-android-plugin/dex-mojo.html
So just increase the available memory:
<dex>
<jvmArguments>
<jvmArgument>-Xms1024m</jvmArgument>
<jvmArgument>-Xmx2048m</jvmArgument>
</jvmArguments>
</dex>
Original comment by william....@xandar.com.au
on 25 Apr 2014 at 6:39
Thank you. that's what i want and help me a lot.
I have read the following page ,but did not found the detail of the
configuration.
"http://books.sonatype.com/mvnref-book/reference/android-dev.html".
The page you give above is very usefull,but it seems there is no direct link in
homepage and the references.however,i got it now. ^_^
And,after read the page,another question comes to me. How to config the dex
phase to generate multi-dex? You know,the dex tool can generate serveral dex
files if use --multi-dex option. This is fatal when the project is too
complex,it may have more than 65336(2^32) methods,then the process will die.
would you please help me again?
Thanks
Original comment by com.aimo...@gmail.com
on 25 Apr 2014 at 7:18
You can use the aaptExtraArgs property to pass in any extra argument you want
when dexing.
Original comment by william....@xandar.com.au
on 25 Apr 2014 at 9:15
Original issue reported on code.google.com by
com.aimo...@gmail.com
on 25 Apr 2014 at 3:48