Android8.1.0 源码编译错误
ninja: build stopped: subcommand failed
.build/core/ninja.mk:148: recipe for target ‘ninja_wrapper’ failed
make: *** [ninja_wrapper] Error
解决办法:
1、打开prebuilts/sdk/tools/jack-admin 文件,找到JACK_SERVER_VM_ARGUMENTS变量,添加参数 -Xmx8192m,
添加后效果:
JACK_SERVER_VM_ARGUMENTS="${JACK_SERVER_VM_ARGUMENTS:=-Dfile.encoding=UTF-8 - XX:+TieredCompilation -Xmx8192m}"
2、然后重新启动Jack server
prebuilts/sdk/tools$ ./jack-admin stop-server
prebuilts/sdk/tools$ ./jack-admin start-server