书史足自悦,安用勤与劬。这篇文章主要讲述编译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
文章图片
然后运行
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
推荐阅读
- Android的init过程(init.rc解析流程)
- 全民体育时代,健身APP如何走出“亚健康”阴影()
- hybird app项目实例(安卓webview中HTML5拍照图片上传)
- Android 沉浸式状态栏
- 论文:麦克风阵列增强An alternative approach to linearly constrained adaptive beamforming
- 2016移动开发校赛之Android实践
- Android实现音乐播放器
- Codeforces 812E Sagheer and Apple Tree——(阶梯博弈)
- Android资源之图像资源(状态图像资源)