本文主要是介绍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即可
这篇关于Cannot resolve corresponding JNI function Java_com_xxxx的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!