已经编译过一次或者切换分支后再次编译报错
out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja FAILED: out/soong/.bootstrap/build.ninja out/soong/.minibootstrap/minibp -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/.bootstrap/build.ninja.d -o out/soong/.bootstrap/build.ninja Android.bp internal error: could not open symlink hardware/qcom/sdm845/Android.bp; its target (display/os_pickup.bp) cannot be opened ninja: build stopped: subcommand failed. 11:02:11 soong minibootstrap failed with: exit status 1 #### failed to build some targets (1 seconds)
解决办法
删除报错的文件夹后重新编译