[q] unexpected top-level error: ?????

i am new to building and have successfully built cm9 and aosp but all of a sudden when building i have been getting this and gc errors. can anyone provide some insight as to how i might prevent/fix this? thanks a billion!

Code:
UNEXPECTED TOP-LEVEL ERROR: java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.<init>(HashMap.java:187) at java.util.HashMap.<init>(HashMap.java:199) at java.util.HashSet.<init>(HashSet.java:125) at com.android.dx.dex.code.OutputFinisher.getAllConstants(OutputFinisher.java:153) at com.android.dx.dex.code.DalvCode.getInsnConstants(DalvCode.java:176) at com.android.dx.dex.file.CodeItem.addContents(CodeItem.java:132) at com.android.dx.dex.file.MixedItemSection.prepare0(MixedItemSection.java:280) at com.android.dx.dex.file.Section.prepare(Section.java:214) at com.android.dx.dex.file.DexFile.toDex0(DexFile.java:504) at com.android.dx.dex.file.DexFile.toDex(DexFile.java:216) at com.android.dx.command.dexer.Main.writeDex(Main.java:574) at com.android.dx.command.dexer.Main.run(Main.java:218) at com.android.dx.command.dexer.Main.main(Main.java:174) at com.android.dx.command.Main.main(Main.java:95) make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Error 3 make: *** Waiting for unfinished jobs....
Code:

UNEXPECTED TOP-LEVEL ERROR: java.lang.OutOfMemoryError: GC overhead limit exceeded at com.android.dx.dex.file.StringIdsSection.intern(StringIdsSection.java:112) at com.android.dx.dex.file.DexFile.internIfAppropriate(DexFile.java:445) at com.android.dx.dex.file.CodeItem.addContents(CodeItem.java:133) at com.android.dx.dex.file.MixedItemSection.prepare0(MixedItemSection.java:280) at com.android.dx.dex.file.Section.prepare(Section.java:214) at com.android.dx.dex.file.DexFile.toDex0(DexFile.java:504) at com.android.dx.dex.file.DexFile.toDex(DexFile.java:216) at com.android.dx.command.dexer.Main.writeDex(Main.java:574) at com.android.dx.command.dexer.Main.run(Main.java:218) at com.android.dx.command.dexer.Main.main(Main.java:174) at com.android.dx.command.Main.main(Main.java:95) make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Error 3

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by rhamill
3 hours ago
Last post by kathleen87
4 hours ago
Last post by sdeckow
1 hour ago
Last post by alf16
4 hours ago
Last post by bogisich.carolyn
2 hours ago
Last post by howe.chris
55 minutes ago