NDK :Type 'xxx' could not be resolved解决
来源:互联网 发布:手机淘宝怎样注销账号 编辑:程序博客网 时间:2024/05/16 07:25
1.错误:
Unresolved inclusion: <jni.h>、Type 'jint' could not be resolved、Type 'jintArray' could not be resolved
2.原因 头文件未引入
3.解决
选择工程->propority->c/c++ General->Path and Symbols->includes->add:
1)/home/wangbin/software/tools/NDK/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.8/include
2)/home/wangbin/software/tools/NDK/android-ndk-r10e/platforms/android-17/arch-arm/usr/include
参考:http://www.tuicool.com/articles/aM7f6b
http://stackoverflow.com/questions/16284199/android-ndk-in-eclipse-type-size-t-could-not-be-resolved
续:
将运行OK ndk工程导入eclipse时又发生该错误,但上述方法以及实施。
进一步解决方案:
1. 在eclipse中关闭指定Project
2. 用其他编辑工具打开该project的.project文件,删除以下内容:
......
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
......
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
......
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
3. 删除.cproject文件
4. 在eclipse里打开原来的project, refresh,然后右键->properties->Android Tools -> Add Native Support
- NDK :Type 'xxx' could not be resolved解决
- eclipse : Type Symbol 'xxx' could not be resolved 解决办法
- [ndk]Type 'size_t' could not be resolved 我的解决方法
- NDK问题Type 'jstring' could not be resolved
- NDK开发中Type 'int32_t' could not be resolved
- Android之JNI NDK错误找不到jni.h 小黄x Type xxx could not be resolved
- Android NDK *** could not be resolved 解决方式
- 解决NDK开发中的 Method 'NewStringUTF' could not be resolved
- 解决eclipse中NDK部分函数could not be resolved
- 解决NDK开发中的 Method 'NewStringUTF' could not be resolved
- 解决NDK开发中的 Method 'NewStringUTF' could not be resolved
- jni xxx could not be resolved
- Symbol xxx 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
- WCF框架使用方法
- Pareto非支配集和的选取-擂台赛方法
- Web 应用架构
- 通过java.net.URLConnection发送HTTP请求的方法
- .9.png一些总结。
- NDK :Type 'xxx' could not be resolved解决
- mapreduce合并小文件CombineFileInputFormat
- SecureCRT下常用指令
- 架构实践
- json解析
- 深入理解Java国际化
- iOS scrollview不能滑动的几个原因及解决方法
- 关于junit测试用例数据不回滚的问题
- Android线程的创建与销毁