Android build error "No rule to make target"

来源:互联网 发布:青苹果软件 编辑:程序博客网 时间:2024/05/16 23:45

经常会碰到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后,再次编译就行




0 0
原创粉丝点击