编译Android系统常见错误

书史足自悦,安用勤与劬。这篇文章主要讲述编译Android系统常见错误相关的知识,希望能为你提供帮助。

编译Android系统常见错误

文章图片

 
【编译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
编译Android系统常见错误

文章图片
 
然后运行
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:
编译Android系统常见错误

文章图片

 
xmllint:command not found
方法:sudo apt-get   install libxml2-utils
 
错误3:
编译Android系统常见错误

文章图片
 
编译Android系统常见错误解决方法:
sudo apt-get update & & sudo apt-get install mesa-utils


    推荐阅读