编译安卓代码有如下报错怎么解决FAILED: out/soong/build.ninja cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp InitTmsEnv: err1 = open vendor/tms/proprietary/conf/nfc/hw/tms_env.sh: no such file or directory InitTmsEnv: path1 = vendor/tms/proprietary/conf/nfc/hw/tms_env.sh GetCrootPath: path = /home/joey/my_work/sprd/C9000U/out/host/linux-x86/bin/../../../.. sven version name : 13 sven version number: 13 binSeGetProps: USE_C1= binSeGetProps: USE_TMS_NFC= true lib7816GetProps: USE_C1= lib7816GetProps: USE_TMS_NFC= true libTmsDlCommonGetProps: USE_C1= libTmsDlCommonGetProps: USE_TMS_NFC= true camera device DEBUG_MALLOC Off libTmsDlReeGetProps: USE_C1= libTmsDlReeGetProps: USE_TMS_NFC= true libTmsDlTeeGetProps: USE_C1= libTmsDlTeeGetProps: USE_TMS_NFC= true DEBUG_MALLOC_OFF Killed 07:23:12 soong bootstrap failed with: exit status 1 ninja: build stopped: subcommand failed. #### failed to build some targets (19:09 (mm:ss)) #### ===============BUILD TIME ANALYSIS=============== [total build time 0:34:21 (hh:mm:ss)] bsp build time: 0:15:12(44.25%) android build time: 0:19:09(55.75%) [android build]regen: 0:19:09(100.00%) [android build]real build: 0:00:00(0.00%) [android build time details] startup: 99.50ms(0.00%) find modules: 371.32ms(0.02%) [total]path: 430.37ms(0.02%) [total]dumpvars: 9,391.34ms(0.46%) [total][soong]blueprint bootstrap: 4,858.69ms(0.24%) [total][soong]environment check: 0.02ms(0.00%) [total][soong]bpglob: 313.70ms(0.02%) [total][soong]bootstrap: 1,133,323.78ms(54.99%) [total]soong: 1,138,498.31ms(55.24%) [total]dist: 0.56ms(0.00%) total: 1,148,322.27ms(55.72%) upload_metrics: 0.05ms(0.00%) [build command] build/soong/soong_ui.bash --make-mode -j64 ===============BUILD TIME ANALYSIS===============
时间: 2024-03-10 10:50:11 浏览: 784
解决Android 源码编译错误的问题
这个错误消息显示 soong build 失败了,其中一个可能的原因是缺少依赖项。你可以尝试运行以下命令:
```
make clean
make -j4
```
这将清除 build 目录并重新编译 Android 代码。如果这不起作用,你需要检查错误消息中提到的文件路径是否存在,以及是否缺少其他依赖项。你也可以尝试在编译过程中打开详细的日志记录,查找更多有用的信息。
阅读全文