I'm using sqlcipher and some native code in my app. Everything works good on almost all devices. Problem exists only on Nexus 5X with Android 6.0.1. I get error:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/sqlite.sql3312test-1/base.apk"],nativeLibraryDirectories=[/data/app/sqlite.sql3312test-1/lib/arm64, /data/app/sqlite.sql3312test-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libstlport_shared.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
I'm using gradle, I have dependency:
dependencies {
//..
compile 'net.zetetic:android-database-sqlcipher:3.3.1-2@aar'
}
Code in my MainActivity:
protected void onCreate(Bundle savedInstanceState) {
//...
SQLiteDatabase.loadLibs(this);
}
In local.properties I specified path to my ndk:
ndk.dir=/Users/me/Desktop/ndk/android-ndk-r10e
My gradle.properties:
android.useDeprecatedNdk=true
If I remove jni directory sqlcipher works good. But I need this directory... Can anyone help me?