1.背景信息
由于项目需要,要合入google的bug fix:https://cs.android.com/android/_/android/platform/frameworks/native/+/2c1782c6f986debe5ec89d5cdd3a3f08b08d5683
查看google的修改发现,对Transform.h 增加了一个方法:android::ui::Transform::det。合入修改之后,我们开始进行编译,会发现编译报错。
2. 分析过程
build error信息如下:
B//frameworks/native/libs/ui:libui header-abi-diff libui.so.abidiff?(prebuilts/clang-tools/linux-x86/bin/header-abi-diff -allow-unreferenced-changes -allow-unreferenced-elf-symbol-changes -lib libui -arch arm64 -o out/soong/.intermediates/frameworks/native/libs/ui/libui/android_vendor.30_arm64_armv8-a_shared/libui.so.abidiff -new out/soong/.intermediates/frameworks/native/libs/ui/libui/android_vendor.30_arm64_armv8-a_shared/libui.so.lsdump -old prebuilts/abi-dumps/vndk/30/64/arm64_armv8-a/source-based/libui.so.lsdump)|| (echo 'error: Please update ABI references with: $ANDROID_BUILD_TOP/development/vndk/tools/header-checker/utils/create_reference_dumps.py -l libui' && (mkdir -p $DIST_DIR/abidiffs && cp out/soong/.intermediates/frameworks/native/libs/ui/libui/android_vendor.30_arm64_armv8-a_shared/libui.so.abidiff $DIST_DIR/abidiffs/) && exit 1)?*****************************************