Eclipse中编写jni c文件中报错Type could not be resolved
来源:互联网 发布:创维酷开电视直播软件 编辑:程序博客网 时间:2024/05/22 14:19
如下
Type 'JNICALL' could not be resolvedType 'jstring' could not be resolvedType 'jclass' could not be resolvedMethod 'NewStringUTF' could not be resolvedSymbol 'NULL' could not be resolved
出现的提示信息如下:
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 这样错误就解决了。
NdkDemo代码已上传至Github
如有不正支出,欢迎留言交流!
我的GitHub
我的CSDN
我的简书
开发笔记
阅读全文
0 0
- Eclipse中编写jni c文件中报错Type could not be resolved
- android jni eclipse中出现Type XXX could not be resolved解决办法
- jni开发中遇到的问题2:Type 'JNIEnv' could not be resolved/Type 'jobject' could not be resolved等等
- eclipse中出现type int32_t could not be resolved
- eclipse中出现type int32_t could not be resolved
- eclipse android ndk c文件报Type '*****' could not be resolved
- JNI在eclipse中出现Unresolved inclusion: <jni.h>或Type 'jint' could not be resolved等解决方法
- 安卓jni工程Type '*****' could not be resolved
- android--jni编译错误的解决方案:.c源文件出现类似Type 'jstring' could not be resolved
- 【已解决】NDK下Eclipse中交叉编译C项目出错:Symbol ‘NULL’ could not be resolved(JNI)
- eclipse : Type Symbol 'xxx' could not be resolved 解决办法
- eclipse Type xxxx could not be resolved 问题解决
- eclipse中出现Type 'xxxx' could not be resolved的处理方法
- eclipse中出现Type 'xxxx' could not be resolved的处理方法
- 在eclipse中出现Type 'xxxx' could not be resolved的解决办法
- eclipse中出现Type 'xxxx' could not be resolved的处理方法
- Eclipse中出现Type 'xxxx' could not be resolved的处理方法
- Eclipse中出现Type 'xxxx' could not be resolved的处理方法
- 动态内存
- iOS10个实用小技巧
- librtmp获取视频流和音频流1
- java 调用bat文件
- 读库小册子【一张照片】
- Eclipse中编写jni c文件中报错Type could not be resolved
- ANSI,UNICODE 等编码
- 链式前向星
- Makefile--如何编译库静态库
- Ucosii消息邮箱使用
- 前端必读:浏览器内部工作原理
- Traffic Server可以播放视频返回ERR_CLIENT_ABORT
- IDEA遇到Unsupported major.minor version 52.0问题
- java基础知识0717