经常会碰到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开发中遇到的'No Rule to Make Target'错误的方法,包括确认产品是否正确编译、重编译指定模块等步骤。

1079

被折叠的 条评论
为什么被折叠?



