close

Type '*****' could not be resolved

Method '******' 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

这样错误就解决了。


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 lsx121924 的頭像
    lsx121924

    lsx121924的部落格

    lsx121924 發表在 痞客邦 留言(0) 人氣()