尝试在Ubuntu 18.04上构建Lollipop 5.1.1 AOSP时遇到错误。
build/core/Makefile:34: warning: overriding recipe for target 'out/target/product/apq8084/system/etc/permissions/android.hardware.sensor.stepdetector.xml'
build/core/base_rules.mk:550: warning: ignoring old recipe for target 'out/target/product/apq8084/system/etc/permissions/android.hardware.sensor.stepdetector.xml'
No private recovery resources for TARGET_DEVICE apq8084
Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
/bin/bash: prebuilts/misc/linux-x86/flex/flex-2.5.39: Is a directory
build/core/binary.mk:575: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp' failed
make: *** [out/host/linux-x86/obj32/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 126
make: *** Waiting for unfinished jobs....
host C++: libaapt_32 <= frameworks/base/tools/aapt/AaptXml.cpp
make: *** wait: No child processes. Stop.
#### make failed to build some targets (01:06 (mm:ss)) ####
知道为什么会这样吗?
我尝试“导出LC_ALL = C”,但没有帮助。
答案 0 :(得分:1)
我重建了flex包,问题得到了解决。
cd prebuilts / misc / linux-x86 / flex
rm flex-2.5.39
焦油zvxf flex-2.5.39.tar.gz
cd flex-2.5.39
./ configure
做
mv flex ../
cd ../
rm -rf flex-2.5.39
mv flex flex-2.5.39