Ubuntu编译安卓源码出错及解决方法

ninja: no work to do.
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja 
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
error: vendor/mediatek/proprietary/hardware/gralloc_extra/Android.bp:22:1: "libgralloc_extra_sys" depends on undefined module "libged_sys"
error: vendor/mediatek/proprietary/hardware/gralloc_extra/Android.bp:59:1: "libgralloc_extra" depends on undefined module "libged"
ninja: build stopped: subcommand failed.
19:28:00 soong bootstrap failed with: exit status 1
make: *** [run_soong_ui] 错误 1
 

 

目前还不知道出错原因,后续知道了再持续更新。

解决方法:

先:make clean

然后重新编译:

source  build/envsetup.sh

launch

make -j8 2>&1 | tee build.log

你可能感兴趣的:(camera,tuning)