build/make/core/Makefile:49: err
2021-09-09 本文已影响0人
gale_小米
集成第三方算法库时遇到的错误
要求替换:/vendor/lib/hw/audio.stub.default.so
[100% 341/341] writing build rules ...
FAILED:
build/make/core/Makefile:49: error: overriding commands for target `out/target/product/xxx/vendor/lib/hw/audio.stub.default.so', previously defined at build/make/core/base_rules.mk:492
11:32:56 ckati failed with: exit status 1
解决方案:
1.找到对应的库生成地方
\hardware\libhardware\modules\audio\Android.bp
2.注释掉中间的代码
/cc_library_shared {
name: "audio.stub.default",
relative_install_path: "hw",
proprietary: true,
srcs: ["audio_hw.c"],
header_libs: ["libhardware_headers"],
shared_libs: [
"liblog",
],
cflags: ["-Wall", "-Werror", "-Wno-unused-parameter"],
}/