Cannot resolve corresponding JNI function Java_com_xxxx

转载自:https://blog.csdn.net/ksksjipeng/article/details/51992435

配置好NDK环境后,编写native方法,编译出现

Cannot resolve corresponding JNI function Java_com_xxx native_xxx

Reports native method declaration in Java where no corresponding JNI function is found in the project.

解决方案如下:

File--->Settings--->Plugins,将Android NDK Support后面的对勾去掉,如下图

重启Android Studio即可

猜你喜欢

转载自blog.csdn.net/lv18092081172/article/details/83785909