pitate7777777 / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

Out of memory error #416

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. simply ran mvn clean install

What is the expected output?
for the android project to build and create the apk file

What do you see instead?
[INFO] UNEXPECTED TOP-LEVEL ERROR:
[INFO] java.lang.OutOfMemoryError: Java heap space
[INFO]  at com.android.dx.util.Bits.makeBitSet(Bits.java:38)
[INFO]  at com.android.dx.util.BitIntSet.<init>(BitIntSet.java:35)
[INFO]  at com.android.dx.ssa.SetFactory.makeLivenessSet(SetFactory.java:91)
[INFO]  at com.android.dx.ssa.SsaBasicBlock.addLiveIn(SsaBasicBlock.java:807)
[INFO]  at 
com.android.dx.ssa.back.LivenessAnalyzer.liveInAtStatement(LivenessAnalyzer.java
:219)
[INFO]  at 
com.android.dx.ssa.back.LivenessAnalyzer.handleTailRecursion(LivenessAnalyzer.ja
va:132)
[INFO]  at 
com.android.dx.ssa.back.LivenessAnalyzer.run(LivenessAnalyzer.java:189)
[INFO]  at 
com.android.dx.ssa.back.LivenessAnalyzer.constructInterferenceGraph(LivenessAnal
yzer.java:94)
[INFO]  at com.android.dx.ssa.back.SsaToRop.<init>(SsaToRop.java:83)
[INFO]  at com.android.dx.ssa.back.SsaToRop.convertToRopMethod(SsaToRop.java:70)
[INFO]  at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:102)
[INFO]  at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:73)
[INFO]  at 
com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:273)
[INFO]  at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:134)
[INFO]  at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:87)
[INFO]  at com.android.dx.command.dexer.Main.processClass(Main.java:487)
[INFO]  at com.android.dx.command.dexer.Main.processFileBytes(Main.java:459)
[INFO]  at com.android.dx.command.dexer.Main.access$400(Main.java:67)
[INFO]  at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:398)
[INFO]  at 
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245
)
[INFO]  at 
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
[INFO]  at 
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
[INFO]  at com.android.dx.command.dexer.Main.processOne(Main.java:422)
[INFO]  at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
[INFO]  at com.android.dx.command.dexer.Main.run(Main.java:209)
[INFO]  at com.android.dx.command.dexer.Main.main(Main.java:174)
[INFO]  at com.android.dx.command.Main.main(Main.java:91)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:47.863s
[INFO] Finished at: Mon Sep 02 10:35:00 BST 2013
[INFO] Final Memory: 18M/122M

What version of maven-android-plugin are you using?
3.6.1

What are the complete output lines of "mvn -version" on your machine?
Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac"

Please provide any additional information below.

Original issue reported on code.google.com by jrichard...@gmail.com on 2 Sep 2013 at 10:01

GoogleCodeExporter commented 9 years ago
Configure the jvmArguments as documented in 
http://maven-android-plugin-m2site.googlecode.com/svn/dex-mojo.html

Original comment by mosa...@gmail.com on 18 Sep 2013 at 4:14