新配置完eclipse c++ android ndk 环境后,导入项目提示以下信息

eclipse android ndk 提示Type 'JNIEnv' could not be resolved 等信息解决办法

 

是由于没有将jni.h导入的缘故,而这个文件在ndk的目录下面。所以,参照以下步骤:
Project Properties -> C/C++ General -> Path and Symbols
选择include标签,Add -> $Android_NDK_HOME/platforms/android-14/arch-arm/usr/include
且选中All languages.
最后Apply -> OK
这样错误就解决了。

 

相关文章:

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