而使用NDK未解决的包容错误 [英] Unresolved inclusion error while using NDK

查看:143
本文介绍了而使用NDK未解决的包容错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我使用的Andr​​oid NDK,但在JNI文件夹中的.c文件是表示图像中未解决的包容性错误:请帮我解决这个问题。我已经试过几乎所有我能找到在互联网上,但未能解决它。对于C / C ++项目,我可以使用的构建路径\路径和符号选项来解决纳入但是对于一个Android项目,这个选项是不是在项目属性可用。


I am using Android NDK but the .c file in the JNI folder is showing the error of Unresolved inclusion as shown in the image: Kindly help me in solving this issue. I have tried almost everything I could find on internet but unable to solve it. For a C/C++ project I can use the build path\paths and symbols option to solve the inclusion but for an android project, this option is not available in project properties.

推荐答案

这是在ADT插件中的错误(或者更确切地说,这听起来像CDT的Eclipse中较新的版本不兼容)在Windows上记录在这里:<一HREF =HTTP://$c$c.google.com/p/android/issues/detail ID = 33788相对=nofollow> HTTP://$c$c.google.com/p/android /问题/详细信息?ID = 33788

This is a bug in the ADT plugin (or rather, it sounds like an incompatibility with the newer version of CDT for Eclipse) on Windows documented here: http://code.google.com/p/android/issues/detail?id=33788

有一个新版本的一个preVIEW它修正这里所述的问题:的 http://tool​​s.android.com/download/adt-21-$p$pview#TOC-Installation

There's a preview of a new version which fixes the problem described here: http://tools.android.com/download/adt-21-preview#TOC-Installation

这是我需要做什么来解决这个问题:

Here's what I needed to do to fix the problem:

  1. 启用preVIEW工具在SDK管理器的选项,然后安装的SDK工具的preVIEW版本。
  2. 使用在preVIEW说明上面链接的链接在Eclipse安装ADT和NDK插件的preVIEW版本。
  3. 重新创建我的项目,这样我就可以重新做了添加本机支持的步骤(显然需要修复工作)。

这也可能是可能实现#3通过编辑相应的项目文件,而不是重新创建,但因为我是处于发展的早期阶段,我没有尝试的。

It's probably possible to accomplish #3 by editing appropriate project files rather than re-creating, but since I'm in early stages of development I didn't experiment with that.

这篇关于而使用NDK未解决的包容错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆