Error when trying to build AOSP 7.1.1 release 6

13460 views
Skip to first unread message

Renan Marcos

unread,
Dec 24, 2016, 6:33:38 PM12/24/16
to Android Building
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 I try to build AOSP for victara (Moto X 2014)... Anyone know how to fix?





Massimo Viaro

unread,
Jan 4, 2017, 12:06:04 AM1/4/17
to Android Building
Hello,
did you get over of this error?
I'm having the same while trying to port N to LG D802.
Thank you!
Max

Alex Stuart

unread,
Jan 4, 2017, 10:56:57 AM1/4/17
to Android Building
I am having the same issues here. With a special command i get the following:

alex@romkitchen:~/CustomROM$ cd external/doclava && mm -B USE_NINJA=false showcommands
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=aosp_bullhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-106-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=out
============================================
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/lge/bullhead/audio_effects.conf:system/etc/audio_effects.conf ignored.
PRODUCT_COPY_FILES vendor/lge/bullhead/vendor/etc/msm_irqbalance.conf:vendor/etc/msm_irqbalance.conf:lge ignored.
No private recovery resources for TARGET_DEVICE bullhead
make: Entering directory `/home/alex/CustomROM'
make: *** No rule to make target `out/host/linux-x86/framework/antlr-runtime.jar', needed by `out/host/common/obj/JAVA_LIBRARIES/doclava_intermediates/classes-full-debug.jar'.  Stop.
make: Leaving directory `/home/alex/CustomROM'


Dan Willemsen

unread,
Jan 4, 2017, 2:23:38 PM1/4/17
to android-...@googlegroups.com
This mailing list is to discuss building AOSP on AOSP supported targets, so the first messages were off topic. That being said, that message can be translated to "the libaudiopolicymanager shared library is not found, it's required by the libaudiopolicyservice shared library". I don't know anything more about that problem.

Alex, your problem is different (though it contains a similar error message). Use 'mma' instead of 'mm', and it should work. 'mm' doesn't load information about any dependencies, so if you haven't built them yet, it fails. You'd need to run 'mma' at least once in order to build all the dependencies for the current directoy (or just run it every time, it's not as slow as it used to be).

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Renan Marcos

unread,
Jan 5, 2017, 11:05:55 AM1/5/17
to Android Building
Thanks for all peoples to answering! But I've solved this error changing "USE_CUSTOM_AUDIO_POLICY := 1" flag to "0" in BoardConfig.mk.

Dasser Basyouni

unread,
May 25, 2017, 9:01:34 PM5/25/17
to Android Building
Will you explain more how you solved this issue please because I have the same issue

ayushbi...@gmail.com

unread,
Sep 15, 2017, 10:15:31 AM9/15/17
to Android Building
edit .bashrc

type export USE_NINJA=false

Blaze Ristov

unread,
Sep 16, 2017, 3:54:48 PM9/16/17
to android-...@googlegroups.com
In boardconfig.mk, USE_CUSTOM_AUDIO_POLICY := 1, change 1 to 0

On Fri, Sep 15, 2017 at 4:04 PM, <ayushbi...@gmail.com> wrote:
edit .bashrc

type export USE_NINJA=false

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscribe@googlegroups.com.

Elclark Kuhu

unread,
Dec 18, 2017, 10:47:43 AM12/18/17
to Android Building


Pada Minggu, 17 September 2017 03.54.48 UTC+8, quake73 menulis:
In boardconfig.mk, USE_CUSTOM_AUDIO_POLICY := 1, change 1 to 0

 Where i found BoardConfig.mk? 

TapTapGo

unread,
Feb 10, 2018, 9:47:33 PM2/10/18
to Android Building
in device/PRODUCT_MANUFACTURER/codename/
Reply all
Reply to author
Forward
0 new messages