Building an Android project in Hudson: Out Of Memory

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Building an Android project in Hudson: Out Of Memory

Postby dereulenspiegel » Fri Mar 12, 2010 9:20 am

Hello,

at the moment I'm trying to automate my build process with the help of Hudson. It's continous integration server. But all builds of my android project fail with this error:
[apply] UNEXPECTED TOP-LEVEL ERROR:
[apply] java.lang.OutOfMemoryError: Java heap space
[apply] at com.android.dx.ssa.SsaMethod.bitSetFromLabelList(SsaMethod.java:122)
[apply] at com.android.dx.ssa.SsaBasicBlock.newFromRop(SsaBasicBlock.java:133)
[apply] at com.android.dx.ssa.SsaMethod.convertRopToSsaBlocks(SsaMethod.java:164)
[apply] at com.android.dx.ssa.SsaMethod.newFromRopMethod(SsaMethod.java:105)
[apply] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:45)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:100)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:74)
[apply] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:269)
[apply] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
[apply] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
[apply] at com.android.dx.command.dexer.Main.processClass(Main.java:297)
[apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
[apply] at com.android.dx.command.dexer.Main.access$100(Main.java:56)
[apply] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
[apply] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
[apply] at com.android.dx.command.dexer.Main.processOne(Main.java:245)
[apply] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
[apply] at com.android.dx.command.dexer.Main.run(Main.java:139)
[apply] at com.android.dx.command.dexer.Main.main(Main.java:120)
[apply] at com.android.dx.command.Main.main(Main.java:87)

On my local Windows 7 machine with Eclipse I'm able to build the very same project. I already tried to increase the Java Heap Space to insane levels but this error occurs every time. Please, can anyone help me?
dereulenspiegel
Freshman
Freshman
 
Posts: 9
Joined: Mon Aug 17, 2009 6:48 pm
Location: Germany

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 4 guests