社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
导入了新工程 编译成功了 但是依赖的工程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后面的对勾去掉,如下图
重启Android Studio即可
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!