android ndk 老是报错could not be resolved
来源:互联网 发布:十月份经济数据 编辑:程序博客网 时间:2024/04/30 03:13
在android里用NDK开发的时候,在jni文件里有cpp文件和c文件,在cpp中总是报错,有写函数比如gl函数等都报错:function glxxx could not be resolved. 那是因为找不到gl的头文件和cpp头文件了。
解决办法:
是由于没有将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
这样错误就解决了。
0 0
- android ndk 老是报错could not be resolved
- Android NDK *** could not be resolved
- Android NDK could not be resolved
- Android NDK *** could not be resolved
- Android NDK *** could not be resolved
- Android NDK *** could not be resolved
- Android NDK *** could not be resolved
- Android NDK *** could not be resolved
- eclipse android ndk c文件报Type '*****' could not be resolved
- android NDK JNI下有些函数could not be resolved
- Android NDK *** could not be resolved 解决方式
- Android NDK *** could not be resolved 无法加载opengl库
- android NDK JNI下有些函数could not be resolved
- Android NDK开发method GetStringUTFChars’could not be resolved
- Android NDK开发method GetStringUTFChars’could not be resolved
- eclipse android ndk 'JNIEnv' could not be resolved
- ubuntu中adtbundle中ndk开发报 Type 'JNIEnv' could not be resolved
- Android:Symbol 'ANDROID_LOG_DEBUG' could not be resolved
- C++实现快速排序(递归)
- leetcode subset ||
- 典型的Top K算法_找出一个数组里面前K个最大数...或找出1亿个浮点数中最大的10000个...一个文本文件,找出前10个经常出现的词,但这次文件比较长,说是上亿行或十亿行,总之无法一次读入内存
- linux shell 求绝对值
- cocos2d-x 3.0游戏实例学习笔记《卡牌塔防》第十步---发射子弹&怪物受伤---所有源码和资源完结下载
- android ndk 老是报错could not be resolved
- backtrace函数和addr2line工具 C函数实现
- js函数中插入按钮的方法
- 设计包含min函数的栈[数据结构]
- C#中对象数组
- Hibernate 注解中CascadeType用法
- 【我的问题】android通过XML实现按钮被按下的反馈效果
- cf 383D DP
- HDU4445