Android系统编译问题总结

本文档提供了针对Android ROM编译过程中遇到的典型错误及其解决方案,包括找不到依赖文件、锁冲突导致的编译失败及内存溢出问题,适用于9.0、8.1等不同版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、编译9.0的时候报错如下:

vendor/qcom/proprietary/camx/src/core/camxpropertyblob.h:169:10: fatal error: 'g_camxproperties.h' file not found
#include "g_camxproperties.h"
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
19:43:27 ninja failed with: exit status 1

解决方法:sudo apt install libxml-simple-perl

2、编译system image时报错如下

16:54:39 Waiting up to 3s to lock out/.lock to ensure no other Soong process is running in the same output directory
16:54:40 Waiting up to 2s to lock out/.lock to ensure no other Soong process is running in the same output directory
16:54:41 Waiting up to 1s to lock out/.lock to ensure no other Soong process is running in the same output directory
16:54:42 Tried to lock out/.lock, but timed out polling every 1s until 10s . Make sure no other Soong process is using it

解决方法:you were already running make in another process. you can’t run two builds at the same time. if there are no other processes using make you can maybe delete the folder /home/lucasguapo23/android/lineage/out/.lock

https://forum.xda-developers.com/android/software-hacking/guide-how-to-build-lineageos-15-1-t3750175/page15
3、编译8.1的一个rom报错如下:
Jack server already installed in “/home/XXX/.jack-server”
Server is already running
[ 18% 2/11] Building with Jack: out/target/common/obj/JAVA_LIBRARIES/framework-full_check_intermediates/classes.jack
FAILED: out/target/common/obj/JAVA_LIBRARIES/framework-full_check_intermediates/classes.jack
/bin/bash out/target/common/obj/JAVA_LIBRARIES/framework-full_check_intermediates/classes.jack.rsp
Out of memory error (version 1.3-rc7 ‘Douarn’ (445000 d7be3910514558d6715ce455ce0861ae2f56925a by android-jack-team@google.com)).
GC overhead limit exceeded.
Try increasing heap size with java option ‘-Xmx’.
Warning: This may have produced partial or corrupted output.
[ 27% 3/11] Building with Jack: out/target/common/obj/JAVA_LIBRARIES/framework-base_intermediates/classes.jack
ninja: build stopped: subcommand failed.
17:26:15 ninja failed with: exit status 1

解决方法:
在这里插入图片描述
https://hk.saowen.com/a/d4e64aaa179c95b78d9a7fe0f6b1ada5e413b44f72301b9dafa6913a5bf11ef3

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值