SQLCipher ver 3.5.4 for Android crash


#1

I integrate the commercial edition library follow the instruction in your web pages. https://www.zetetic.net/sqlcipher/sqlcipher-for-android/

I got the follow error:

12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception ‘java.lang.NoSuchFieldError’ thrown in java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.String):-2
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] in call to FindClass
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] from java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.String)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] “main” prio=5 tid=1 Runnable
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] | group=“main” sCount=0 dsCount=0 obj=0x77f86f88 self=0xb4827800
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] | sysTid=30772 nice=0 cgrp=apps sched=0/0 handle=0xb6fdcbec
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] | state=R schedstat=( 730536723 109773017 566 ) utm=53 stm=20 core=3 HZ=100
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] | stack=0xbe578000-0xbe57a000 stackSize=8MB
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] | held mutexes= “mutator lock”(shared held)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #00 pc 0000484c /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #01 pc 00003031 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #02 pc 002524b9 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, char const*, art::mirror::ArtMethod*)+68)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #03 pc 00235dc9 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+144)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #04 pc 000b327b /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #05 pc 000b39b1 /system/lib/libart.so (art::JniAbortF(char const*, char const*, …)+60)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #06 pc 000b6aff /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1286)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #07 pc 000b77bd /system/lib/libart.so (art::CheckJNI::FindClass(_JNIEnv*, char const*)+20)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #08 pc 0009273b /data/app/com.cube.test-1/lib/arm/libsqlcipher.so (sqlcipher::register_android_database_SQLiteCompiledSql(_JNIEnv*)+14)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #09 pc 00092991 /data/app/com.cube.test-1/lib/arm/libsqlcipher.so (JNI_OnLoad+32)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #10 pc 001ddf43 /system/lib/libart.so (art::JavaVMExt::LoadNativeLibrary(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, art::Handleart::mirror::ClassLoader, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >)+1582)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #11 pc 0020531d /system/lib/libart.so (art::Runtime_nativeLoad(_JNIEnv
, _jclass*, _jstring*, _jobject*, _jstring*)+528)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] native: #12 pc 0001a3c5 /system/framework/arm/boot.oat (Java_java_lang_Runtime_nativeLoad__Ljava_lang_String_2Ljava_lang_ClassLoader_2Ljava_lang_String_2+152)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] at java.lang.Runtime.nativeLoad(Native method)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] at java.lang.Runtime.doLoad(Runtime.java:428)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] - locked <0x1db365ea> (a java.lang.Runtime)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] at java.lang.Runtime.loadLibrary(Runtime.java:369)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] at java.lang.System.loadLibrary(System.java:988)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] at net.sqlcipher.database.SQLiteDatabase.a(SourceFile:196)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] - locked <0x0b6be0db> (a java.lang.Class<net.sqlcipher.database.SQLiteDatabase>)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] at net.sqlcipher.database.SQLiteDatabase.a(SourceFile:189)
12-21 16:41:56.727 30772-30772/com.cube.test A/art: sart/runtime/check_jni.cc:65] - locked <0x0b6be0db> (a java.lang.Class<net.sqlcipher.database.SQLiteDatabase>)