欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

make: *** No rule to make target `jni/NDKDemo2.cpp', needed by `.../objs/NDKDemo/NDKDemo2.o'. stop

程序员文章站 2022-05-12 08:57:44
...

make: *** No rule to make target `jni/NDKDemo2.cpp', needed by 

`obj/local/arm64-v8a/objs/NDKDemo/NDKDemo2.o'.  Stop.

 

错误原因:Android.mk的变量LOCAL_SRC_FILES := NDKDemo2.cpp

                找不到jni目录下的NDKDemo2.cpp文件;

解决方案:重新设置LOCAL_SRC_FILES 对应的*.cpp文件;

例如:

make: *** No rule to make target `jni/NDKDemo2.cpp', needed by `.../objs/NDKDemo/NDKDemo2.o'. stop

LOCAL_SRC_FILES := NDKDemo2.cpp

修改为:

 

LOCAL_SRC_FILES := NDKDemo.cpp