Search code examples
androidbuildcompilationandroid-sourceninja

Missing 'libaudiopolicyservice_intermediates" when trying to compile AOSP 7.1.1 release 6?


ninja: error: 'out/target/product/victara/obj/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by 'out/target/product/victara/obj/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

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

I got this error when compiling AOSP for victara (Moto X 2nd generation)... Anyone know how to fix ?

I'm using this local manifest: https://github.com/renanmarcs/local_manifests/blob/master/local.xml

And this is how I started to compile:

cd ~/aosp
repo sync
source build/envsetup.sh
lunch aosp_victara-userdebug
make -j2

Solution

  • SOLVED: I've changed "USE_CUSTOM_AUDIO_POLICY" in "BoardConfig.mk" to "0" for disable this option.