1. 程式人生 > >Android 系統原始碼不編譯xxxTests模組的mk檔案註釋

Android 系統原始碼不編譯xxxTests模組的mk檔案註釋

1. 編譯xxxTests模組導致的編譯不過


build/core/Makefile:2789: warning: ignoring old commands for target `out/target/product/sp9832e_op54_go/sp9832e_op54_gofu_osll-ota-47304.zip'
ninja: error: 'out/target/common/obj/JAVA_LIBRARIES/metrics-helper-lib_intermediates/classes.jack', needed by 'out/target/common/obj/APPS/SystemUITests_intermediates/with-local/classes.dex', missing and no known rule to make it
04:15:46 ninja failed with: exit status 1

#### failed to build some targets (41 seconds) ####

2. 解決方案

註釋掉Anddroid.mk的編譯語句

#include $(call all-makefiles-under,$(LOCAL_PATH))

執行結果

warn: ignoring density 'mdpi-v4' for -c option.
warn: ignoring density '420dpi-v4' for -c option.
warn: ignoring density 'xxhdpi-v4' for -c option.
warn: ignoring density 'hdpi-v4' for -c option.
[100% 14/14] Install: out/target/product/sp9832e_op54_go/system/priv-app/SystemUI/SystemUI.apk

#### build completed successfully (01:09 (mm:ss)) ####