编译Android系统常见错误

 

ninja: build stopped: subcommand failed.

build/core/ninja.mk:153: recipe for target 'ninja_wrapper' failed

make: *** [ninja_wrapper] Error 1

 

#### make failed to build some targets (13:40 (mm:ss)) ####

 

修改文件

prebuilts/sdk/tools/jack-admin

 

然后运行

prebuild/sdk/tools/jack-admin start-kernel看看是否会出错

我的环境就出现了如下错误

fantasy@fantasy-All-Series:~/my_dev/android/AOSP$ ./prebuilts/sdk/tools/jack-admin start-server

./prebuilts/sdk/tools/jack-admin: line 163: curl: command not found

./prebuilts/sdk/tools/jack-admin: line 163: curl: command not found

./prebuilts/sdk/tools/jack-admin: line 163: curl: command not found

./prebuilts/sdk/tools/jack-admin: line 163: curl: command not found

Communication error with Jack server (127), try 'jack-diagnose' or see Jack server log

 

即没有安装curl

如下命令安装curl即可

sudo apt-get install curl

 

参考:

http://blog.csdn.net/HardReceiver/article/details/52650303

 

 

错误2:

 

xmllint:command not found

方法:sudo apt-get  install libxml2-utils

 

错误3:

 

解决方法:

sudo apt-get update && sudo apt-get install mesa-utils
posted @ 2017-06-04 09:10  wxer  阅读(6704)  评论(0编辑  收藏  举报