NDK开发过程中有时候在eclipse里会遇到其无法处理inclusion导致symbol显示错误
2015-02-27 16:30
260 查看
在做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. 搞定
最终的解决办法就是初始化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. 搞定
相关文章推荐
- android开发给eclipse安装ADT插件遇到NDK pluign无法安装的错误
- Eclipse插件开发中遇到的一些错误处理
- iOS开发遇到的错误 -- Label显示多行文字导致宽度和高度的问题
- 一次项目开发过程中遇到的问题--错误的表单校验导致我的整个系统宕机
- 安装(显卡)驱动出现错误及其导致无法进入X的处理办法
- WIN7下的WCF遇到的问题:HTTP 错误 404.17 - Not Found 请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理
- WIN7下.Net开发遇到的又一问题:HTTP 错误 500.19 - Internal Server Error,无法访问请求的页面,因为该页的相关配置数据无效。
- 创建HTML文件保存由于编码问题导致内容无法显示的处理办法
- MSDN中语法错误、无法显示网页处理方法
- 又是破IE,图片格式错误导致IE无法显示图片
- WIN7下.Net开发遇到的又一问题:HTTP 错误 500.19 - Internal Server Error,无法访问请求的页面,因为该页的相关配置数据无效。
- 连接的用户过多 导致此错误的原因是:Web 服务器忙,因通信量过大而无法处理您的请求。
- 连接的用户过多 导致此错误的原因是:Web 服务器忙,因通信量过大而无法处理您的请求。
- 一些开发ssh2过程中遇到错误的解决办法
- MVC3.0 开发过程中遇到错误及解决方案(不断更新中。。。)
- 修改sys密码导致节点关闭失败及standby db无法同步-处理过程
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法
- 使用eclipse进行开发时,有时候遇到电脑卡死的解决办法
- 解决NDK开发中Eclipse报错“Unresolved inclusion jni.h”的最终方法