ninja: build stopped: subcommand failed. make: *** [ninja_wrapper] Error 1

编译Android7.1源码遇到这个错误:
ninja: build stopped: subcommand failed. make: * [ninja_wrapper] Error 1
编译环境是Ubuntu14.04虚拟机,分配了4个CPU核心,8G内存

最后在stackoverflow上找到了解决方案:

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
out/host/linux-x86/bin/jack-admin kill-server
out/host/linux-x86/bin/jack-admin start-server

查看原文

你可能感兴趣的:(Android)