Platform: RK3399-MID
OS: Android 7.1.2
Kernel: v4.4.83
问题:
编译时报以下错误
Starting build with ninja
ninja: Entering directory `.'
[ 0% 21/41303] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: loadlocale.c:130:_nl_intern_locale_data: ?? 'cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' ???
Aborted (core dumped)
[ 0% 21/41303] host C++: aprotoc <= external/protobuf/src/google/protobuf/descriptor.cc
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1#### make failed to build some targets (37 seconds) ####
解决方法:
重新打开终端,并重新设置环境变量;