Currently i am working on Android NDK and successfully implementing C code in jni and calling c code using jni on android studio 1.5.
But
Read first my answer here to add *.so libraries:
https://stackoverflow.com/a/33164947/3626214
And now, read here how to solve java.lang.UnsatisfiedLinkError: dlopen failed:
on Android 6.X devices because you'll get an error on this devices when you add *.so libraries:
build.gradle
android
{
//23 or higher
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig
{
...
//important code, write API 22
targetSdkVersion 22
...
}
...
}