make: *** No rule to make target `out/target/product/ProductName/system/framework/framework-res.apk' Android build error "No rule to make target"

Android build error "No rule to make target"

经常会碰到android build error "No rule to make target"...

例如:

make: *** No rule to make target `out/target/product/ProductName/system/framework/framework-res.apk', needed by `out/target/product/...'.  Stop.

这种通常是没有生成framework-res.apk,

一种是由于根本没编译过, 

一种是以前编译过,但最近有修改,需重新编译,

一种是由于以前lunch时选用的其他product,没有这种product的,也需要lunch正确的product后,再编译

lunch

cd frameworks/base/core/res

mm

再编译需要的模块


make: *** No rule to make target `out/target/product/generic/obj/SHARED_LIBRARIES/libc_intermediates/export_includes', needed by...

这种通常是需要lunch正确的product后,再次编译就行




文章标签: Android build error
个人分类: Android

猜你喜欢

转载自blog.csdn.net/weixin_42082222/article/details/80359200