android 编译:classes-with-local.dex] Killed

target Dex: framework

make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed

因为是内存不足造成的,后来我把虚拟机的内存改为3G就编过了。

还有另一种方法是修改如下文件(这个我没有实际验证,留在这里以备参考而已):

build/core/definitions.mk

xx@xxxxxxx:~/WORKING_DIRECTORY/build/core$ diff definitions.mk definitions.mk.OLD
1557c1557
<     $(if $(findstring windows,$(HOST_OS)),,-JXms16M -JXmx1024M) \
---
>     $(if $(findstring windows,$(HOST_OS)),,-JXms16M -JXmx2048M) \

 -JXmx2048M) 改为-JXmx1024M)

你可能感兴趣的:(Android相关,linux编译相关)