Android NDK *** could not be resolved
来源:互联网 发布:开放式耳机隔音 知乎 编辑:程序博客网 时间:2024/04/30 06:06
Type '*****' could not be resolved
Method '******' 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
这样错误就解决了。
如果添加了头文件还是问题,那可能是因为工程是C++工程,但代码是用的C风格的代码,解决方法为将工程文件".project"中的“<nature>org.eclipse.cdt.core.ccnature</nature>”行去掉保存,重新打开Eclipse工程。参见:
http://stackoverflow.com/questions/11666711/type-jint-could-not-be-resolved-and-jnienv-jclass
还有一种方法:在extern "C"的大括号中加入#incldue <jni.h>
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 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 老是报错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
- Android:Symbol 'ANDROID_LOG_DEBUG' could not be resolved
- 【Android】JNICALL could not be resolved
- eclipse android ndk 提示Type 'JNIEnv' could not be resolved 等信息解决办法
- nginx 解决跨域问题
- Android-倒计时工具类
- 日经春秋 20150731
- Android开发笔记---service的简单使用
- Xcode is missing from working copy
- Android NDK *** could not be resolved
- scrollview起始位置如何设置为顶部
- Zedboard RevD版本配置U-boot和linaro
- .NET4.5新特性
- Java压缩技术(四) GZIP——Java原生实现
- 说说Android应用的persistent属性
- 回调函数
- 工作中问题整理1----使用scanf出现的奇怪内存越界问题
- 《我的软件列表》