解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
2017-11-18 23:37
429 查看
感谢原作者的辛勤劳作:
http://blog.csdn.net/zhubin215130/article/details/39347873
在做NDK开发过程中有时候在eclipse里会遇到其无法处理inclusion导致symbol显示错误,网上有许多方法可以解决类似“Unresolved inclusion jni.h” 错误的方法,包括include
path等方法,不过对我都不管用。
最终的解决办法就是初始化eclipse对该project的native support:
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
5. 搞定
http://blog.csdn.net/zhubin215130/article/details/39347873
在做NDK开发过程中有时候在eclipse里会遇到其无法处理inclusion导致symbol显示错误,网上有许多方法可以解决类似“Unresolved inclusion jni.h” 错误的方法,包括include
path等方法,不过对我都不管用。
最终的解决办法就是初始化eclipse对该project的native support:
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
5. 搞定
相关文章推荐
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- [置顶] 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- NDK开发中Eclipse报错“Unresolved inclusion jni.h”解决办法
- eclipse jni 开发 遇到的问题,Unresolved inclusion jni.h” 问题的解决办法
- NDK导入Eclipse CDT出现jni.h找不到解决方法
- NDK导入Eclipse CDT出现jni.h找不到解决方法
- eclipse NDK开发中找不到头文件解决方法