Android系统编译问题总结

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 [email protected])).
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

你可能感兴趣的:(其它)