导入了新工程 编译成功了 但是依赖的工程jni代码报错 

百度的方法 

配置好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后面的对勾去掉,如下图

Cannot resolve corresponding JNI function Java_com_xxxx

重启Android Studio即可

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2022-01-04
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-04-19
猜你喜欢
  • 2021-10-14
  • 2021-09-19
  • 2021-10-04
  • 2021-05-11
  • 2021-12-11
相关资源
相似解决方案