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
 
 

GitHub 加速计划 / ni / ninja
4
0
下载
a small build system with a focus on speed
最近提交(Master分支:3 个月前 )
048a68df Use Lowercase Headers for Cross-Compiling Windows Targets 7 天前
cc4ce1f9 This update ensures consistency in using lowercase headers across the codebase for cross-compiling Windows targets. 10 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐