CRT build_userota.sh* 编译 出现错误

问题遇到的现象和发生背景

CRT build_userota.sh* 编译 出现错误

问题相关代码,请勿粘贴截图

clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libc++.so' failed
make: *** [out/host/linux-x86/obj32/lib/libc++.so] Error 1

make failed to build some targets (15:43 (mm:ss))

各位知道怎么解决这个问题吗?蟹蟹٩('ω')و

解决方法:看下是否版本编译问题,我的就是允许Java -1.7,但是之前用了java -1.8。 如果用的是CRT 用的git 。可以vim ~/.bashrc(查看当前环境配置) 然后将1.8注释掉,改成1.7就好了,输入wq保存, 输入source ~/.bashrc 然后输入java . version 查看一下编译版本是不是改过来了,就好了。别忘了删除之前已经编译了的文件,不然还是会报错