在构建 LineageOS 19.0/AOSP 12 时修复缺失的依赖项

Fixing Missing Dependencies while building LineageOS 19.0/AOSP 12

我正在尝试在 VPS 运行 Fedora 34 工作站上构建 Lineage 19.0。它有 8GB 内存和 20GB 交换空间。它是在KVM中虚拟化的。

它已正确完成所有其他工作,我已经仔细检查是否遗漏了任何依赖项。我还使用 https://github.com/LineageOS/android_hardware_ril/tree/lineage-19.0/ 重新克隆了 hardware/ril 路径,但它也没有用。

这是错误。

[ 99% 1244/1245] finishing build rules ...
FAILED: 
hardware/ril/reference-ril/Android.mk: error: "libreference-ril (SHARED_LIBRARIES android-arm) missing libril (SHARED_LIBRARIES android-arm)" 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/ril/rild/Android.mk: error: "rild (EXECUTABLES android-arm) missing libril (SHARED_LIBRARIES android-arm)" 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:1122: error: exiting from previous errors.
21:03:21 ckati failed with: exit status 1

#### failed to build some targets (02:24 (mm:ss)) ####

答案如下

找到答案:

首先,确保您拥有的三星设备是否拥有最新的三星硬件文件。

其次,只需在 BoardConfig.mk

中输入 ALLOW_MISSING_DEPENDENCIES=true