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)) ####