首页 > 代码库 > NDK开发中出现各种Semantic Error“XXX 'xxx' could not be resolved”的解决方法
NDK开发中出现各种Semantic Error“XXX 'xxx' could not be resolved”的解决方法
项目要求NDK开发App程序,于是import了工程项目,搭好了环境,结果出现各种
Type ‘xxx‘ could not be resolved
Method ‘xxx‘ could not be resolved
等等Semantic Error。但是工程本身并不存在错误,可以成功编译。
解决方法:明显是没有包含各种头文件造成的,<jni.h>这些头文件包含进工程即可。
右键工程->Properties->C/C++ General->Paths and Symbols->Includes
Add你的包含文件夹即可,例如${NDKROOT}/platforms/android-19/arch-arm/usr/include
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。