新安装的ubuntu 18.04 简单配置一下android编译环境后,编译app 出现下面的错误提示:

flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertioncnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)

bing 搜索之,在这个链接中找到解法 https://stackoverflow.com/questions/49955137/error-when-build-lineageos-make-ninja-wrapper-error-1

export LC_ALL=C

把这行代码添加到bashrc 文件中。

实测有效。


那么这句配置是什么意思呢? 搜索得到: LC_ALL=C 是为了去除所有本地化的设置,让命令能正确执行。