1/ mm编译 frameworks/base/packages/SystemUI 出现此错误
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
01:52:18 ninja failed with: exit status 1
搜索资料
http://android.2317887.n4.nabble.com/quot-mm-quot-fails-in-frameworks-base-SystemUI-td441528.html
m -j out/target/common/obj/JAVA_LIBRARIES/metrics-helper-lib_intermediates/link_type
可以解决
继续往下走报错
ninja: build stopped: subcommand failed.
ninja failed with: exit status 1
执行
export LC_ALL=C
在遇到上面的ninja: error: 'out/target/common/obj/JAVA_LIBRARIES/metrics-helper-lib_intermediates/classes.jack 问题,继续执行上面的命令
m -j out/target/common/obj/JAVA_LIBRARIES/metrics-helper-lib_intermediates/link_type
然后编译成功
[100% 1/1] Check module type: out/targ...ics-helper-lib_intermediates/link_type
#### build completed successfully (01:02 (mm:ss)) ####