ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2013年8月30日 星期五

FAQ ? build ics 時,出現:
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
用 make showcommands 來看:
out/host/linux-x86/bin/dx -JXms16M -JXmx1536M --dex --output=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex    --core-library out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes.jar

UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space


修改:
diff --git a/core/definitions.mk b/core/definitions.mk
index a562f1f..6f872ba 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1549,7 +1549,7 @@ define transform-classes.jar-to-dex
 @echo "target Dex: $(PRIVATE_MODULE)"
 @mkdir -p $(dir $@)
 $(hide) $(DX) \
-    $(if $(findstring windows,$(HOST_OS)),,-JXms16M -JXmx1536M) \
+    $(if $(findstring windows,$(HOST_OS)),,-JXms2G -JXmx4G) \
     --dex --output=$@ \
     $(incremental_dex) \
     $(if $(NO_OPTIMIZE_DX), \


ref:

沒有留言:

標籤

網誌存檔