【已解决】 Ubuntu18.04编译AOSP4.0.1_r1时遇到的错误,求解
已安装lib32z1-dev,最新版(1:1.2.11.dfsg-0ubuntu2.2)
希望能得到解决,谢谢。
图片:

错误:
out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/XMLNode.o:在函数‘parseStyledString(Bundle*, char const*, android::ResXMLTree*, android::String16 const&, android::String16*, android::Vector<StringPool::entry_style_span>*, bool, bool)’中:
/home/aosp/android/frameworks/base/tools/aapt/XMLNode.cpp:207:对‘pseudolocalize_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’未定义的引用
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt] 错误 1
已经解决了,原来是make clean的事(
1、编译低版本,比如上面4.x的系统,建议Ubuntu 16版本,不用新版,新版可能存在各种问题。
2、系统语言是英文,出错的信息就是英文,搜索引擎容易搜索到错误,直接cv就行了。但是如果中文语言的系统出错我就看不懂了。。