repo sync下载完代码后第一次编译就出错
出错的log
In file included from system/core/include/utils/String16.h:22:0,
from frameworks/native/include/binder/IBinder.h:22,
from frameworks/native/include/binder/Binder.h:22,
from frameworks/native/include/binder/IInterface.h:21,
from frameworks/native/include/binder/IBatteryStats.h:20,
from frameworks/av/media/libmediaplayerservice/xxx.cpp:43:
system/core/include/utils/Unicode.h:118:6: note: declared here
void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst);
到这个目录frameworks/av/media/libmediaplayerservice里 git blame -L 269,271 xxx.cpp 查看是谁做的改动,
然后gitk xxx.cpp 查看发现改动的change刚好是在自己repo sync代码期间merge的,很可能是拉取某个分支后这个分支又进了新change导致编译失败
重新repo sync一遍问题得以解决