Type 'JNICALL' could not be resolved
2016-06-21 17:40
281 查看
配置eclipse中的NDK目录
右键工程->Android Tools -> Add native support -> finish
右键Preperties->C/C++General->Path and Symbol->c,cpp->add D:\TOOLS\jdk1.7x32\include
不然识别不到jni.h
出现的提示信息如下:
Multiple markers at this line
- Syntax error
- Type ‘JNIEnv’ could not be resolved
- Type ‘JNICALL’ could not be resolved
是由于没有将jni.h导入的缘故,而这个文件在ndk的目录下面。所以,参照以下步骤:
Project Properties -> C/C++ General -> Path and Symbols
选择include标签,Add -> $Android_NDK_HOME/platforms/android-14/arch-arm/usr/include
且选中All languages.
最后Apply -> OK
这样错误就解决了。
右键工程->Android Tools -> Add native support -> finish
右键Preperties->C/C++General->Path and Symbol->c,cpp->add D:\TOOLS\jdk1.7x32\include
不然识别不到jni.h
出现的提示信息如下:
Multiple markers at this line
- Syntax error
- Type ‘JNIEnv’ could not be resolved
- Type ‘JNICALL’ could not be resolved
是由于没有将jni.h导入的缘故,而这个文件在ndk的目录下面。所以,参照以下步骤:
Project Properties -> C/C++ General -> Path and Symbols
选择include标签,Add -> $Android_NDK_HOME/platforms/android-14/arch-arm/usr/include
且选中All languages.
最后Apply -> OK
这样错误就解决了。
相关文章推荐
- 单台服务器测试流程
- Android--->中的一些设计模式
- [JS实例] input type=file 自定义样式的方法
- javascript alert,confirm,prompt弹框用法
- caffe各层介绍
- python中的requests模块错误
- Linux虚拟机中vim的配置
- tensorflow安装技巧
- RabbitMQ (二)工作队列
- JS重新发送倒计时--源自技术
- php数组使用json_encode函数中文被编码成null的原因和解决办法
- Element animation-list must be declared异常
- Java之重载,隐藏,静态绑定,动态绑定
- 模拟电路"虚短" & "虚断"
- My97DatePicker选择起始日期
- Mysql、XSS 防御
- 如何用SQL SERVER取分组数据第一条
- centos最小化安装后安装setup配置工具
- 平时积累常用知识
- “Hello world” of RabbitMQ