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:
沒有留言:
張貼留言