Android ndk“Unresolved inclusion:

在NDK环境下编译,调用.so文件时,可能会出现类似如下的错误:

Unresolved inclusion: <jni.h>

...

解决方法:

NDK Project->New->Folder->Advanced->Link to alternate location(Linked Folder)Browse the path(for example):C:\Android\android-ndk-r8b\platforms\android-8\arch-arm\usr\include

其中C:\Android\android-ndk-r8b\platforms\android-8\arch-arm\usr\include是我的NDK安装路径

你可能感兴趣的:(android,异常,NDK,so)