This sample app from my book uses 3.5.4, and it works fine.
If I update it to 3.5.5, the app crashes on:
- Motorola Moto E XT1022 (Android 4.4,
Build.CPU_ABI
isarmeabi-v7a
,Build.CPU_ABI2
isarmeabi
) - Android 4.4 SDK emulator (x86)
- Android 4.3 SDK emulator (x86)
The stack trace is:
Process: com.commonsware.android.sqlcipher, PID: 11125
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "signal" referenced by "libsqlcipher.so"...
at java.lang.Runtime.loadLibrary(Runtime.java:364)
at java.lang.System.loadLibrary(System.java:526)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:195)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:188)
at com.commonsware.android.sqlcipher.DatabaseHelper.<init>(DatabaseHelper.java:36)
at com.commonsware.android.sqlcipher.ConstantsFragment.onViewCreated(ConstantsFragment.java:62)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:904)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
at android.app.BackStackRecord.run(BackStackRecord.java:684)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
at android.app.Activity.performStart(Activity.java:5257)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2171)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
at android.app.ActivityThread.access$800(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5086)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
The problem does not occur on Android 5.0+ in my testing.
If you need me to try some other scenarios, please let me know. This problem was pointed out by one of my readers, so the problem is not limited to my development environment, FWIW.
Thanks!