android NDK開發編譯時出現Type 'jint' could not be resolved和Unresolved inclusion: 的解決辦法

編譯.cpp文件的時候出現了Unresolved inclusion: <jni.h>、Type 'jint' could not be resolved、Type 'jintArray' could not be resolved這些錯誤。經查詢資料,解決方法如下:

在工程的C/C++ General->Path and Symbols中,把NDK文件夾下的jni頭文件和相應的C++頭文件添加進來

我添加的兩個路徑:

/home/qihl/work/Android/android-ndk/android-ndk-r10e/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/mipsel-linux-android/4.9/include

/home/qihl/work/Android/android-ndk/android-ndk-r10e/platforms/android-19/arch-arm/usr/include

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章