Unresolved inclusion: <jni.h>

Type 'jint' could not be resolved

Type 'JNICALL' could not be resolved

 

Type 'jint' could not be resolved Type 'JNICALL' could not be resolved

Type 'jint' could not be resolved Type 'JNICALL' could not be resolved

 

这是因为Eclipse的C/C++配置的找不到jni的头文件;

 

解决方案:

     第一种:

          简单只在运行时删除错误再进行运行,但是再次打开cpp或h文件又会出现错误;

Type 'jint' could not be resolved Type 'JNICALL' could not be resolved

 

  第二种:

     项目中添加ndk中的jni的头文件步骤参考:NDK项目添加C/C++通用库,这样可以从根本解决;

    

 

 

相关文章:

  • 2021-05-16
  • 2021-07-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2021-09-05
  • 2021-09-29
  • 2021-10-25
  • 2021-05-13
  • 2021-12-18
  • 2021-09-02
  • 2021-06-07
相关资源
相似解决方案