警告, 这篇文章是老的配置方式, 随着goolge工具的完善,有了更高级的配置方式,参考文章: 1.http://jingyan.baidu.com/article/3ea51489e7a9bd52e61bbac7.html 2. 配置好环境后, 想进行debug调试:http://www.cnblogs.com/hmxp8/p/3971549.html 优化: 1. 目录里千万不能含有空格,否则就是“No symbol table is loaded. Use the "file"
最近在研究面部识别美白相关的功能.使用的是opencv,就去研究了.今天正好有空就把安装了ndk,安装完成之后就试图去编译demo程序,hellow-jni c代码,一开始编辑就报错了3个错误信息: Type 'jint' could not be resolved Type 'JNIEnv' could not be resolved Type 'jclass' could not be resolved 之后我就网上Google了一下,找到了解决方案,下面将解决方案共享给大家: 在jni项目
1. error:parameter name omitted 用javah生成的.h文件中,方法是没有指定形参的,实现的时候需要我们在实现的方法定义中加上形参. 2. 'NewStringUTF' could not be resolved 出现这个问题找了不少地方也没有解决办法,后来在problems view中把这个错误删除掉,就可以了.执行ndk-build编译通过. 3. Unresolved inclusion: <jni.h> 刚开始写jni代码时include<jni