1. 程式人生 > >Cannot resolve corresponding JNI function Java_com_xxxx

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即可