OutOfMemoryError when executing Dalvik DX Conversion

See stacktrace.  Does anyone know of a way to increase the memory settings that IDEA uses when running the Dalvik DX conversion?


Error:Unable to execute DX
Error:java.lang.OutOfMemoryError: Java heap space
Error:at java.util.BitSet.initWords(BitSet.java:144)
Error:at java.util.BitSet.<init>(BitSet.java:139)
Error:at com.android.dx.ssa.SsaMethod.bitSetFromLabelList(SsaMethod.java:138)
Error:at com.android.dx.ssa.SsaBasicBlock.newFromRop(SsaBasicBlock.java:158)
Error:at com.android.dx.ssa.SsaMethod.convertRopToSsaBlocks(SsaMethod.java:174)
Error:at com.android.dx.ssa.SsaMethod.newFromRopMethod(SsaMethod.java:104)
Error:at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:45)
Error:at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:99)
Error:at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:73)
Error:at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:269)
Error:at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
Error:at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
Error:at com.android.dx.command.dexer.Main.processClass(Main.java:336)
Error:at com.android.dx.command.dexer.Main.processFileBytes(Main.java:315)
Error:at com.android.dx.command.dexer.Main.access$100(Main.java:56)
Error:at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:266)
Error:at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:134)
Error:at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
Error:at com.android.dx.command.dexer.Main.processOne(Main.java:284)
Error:at com.android.dx.command.dexer.Main.processAllFiles(Main.java:220)
Error:at com.android.dx.command.dexer.Main.run(Main.java:176)
Error:at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error:at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Error:at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Error:at java.lang.reflect.Method.invoke(Method.java:597)
Error:at org.jetbrains.android.compiler.tools.AndroidDxRunner.runDex(AndroidDxRunner.java:118)
Error:at org.jetbrains.android.compiler.tools.AndroidDxRunner.main(AndroidDxRunner.java:193)
Error:at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:75)

1 comment
Comment actions Permalink

Settings | Compiler | Android DX Compiler

0

Please sign in to leave a comment.