Type 'JNIEnv' could not be resolved
2016-05-09 15:38
447 查看
出现的提示信息如下:
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
这样错误就解决了。
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
这样错误就解决了。
相关文章推荐
- jquery动态插入append、prepend、before、after区别
- 自己写的一个php基于phpQuery的通用采集类
- 侧栏工具条开发
- 4.27日第15次作业,论文及架构,投资大3000W,周期大2年
- vxlan和IPsec结合使用
- Android Gradle使用详解
- UIDatePicker转为汉字,并且显示年月日
- Clustering
- iOS 截屏 swift
- MVC与三层架构区别
- PhpStorm提高效率的使用方法及设置
- php爬美女照
- HDU 2553 N皇后问题 (DFS+回溯)
- select、poll、epoll之间的区别总结
- Qt实现IP输入框
- 链表——删除排序链表的重复结点(一个都不保留)
- jQuery轻松实现表格的隔行变色和点击行变色的实例代码
- 关于九宫图的处理
- 相关编译到Android细节总结 编译加入curl关联lib与头文件 && 解决pthread的cancel函数NDK不支持,找不到sockaddr_i
- MVC框架模式(一)