Cannot resolve corresponding JNI function Java_com_xxxx

来源:互联网 发布:java读取usb扫描枪 编辑:程序博客网 时间:2024/06/05 16:24

配置好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即可

0 7
原创粉丝点击