Android Question Error Failed resolution of: Lnet/sqlcipher/database/SQLiteDatabase; when applying sqlcipher-android-4.10.0.aar to fix the SQLCipher 16KB issue

Alex_197

Well-Known Member
Licensed User
Longtime User
Hi all.

As I mentioned in my previous post https://www.b4x.com/android/forum/t...6kb-issues-with-sqlcipher.168471/post-1033728
I must to admit that I was wrong. I tested it on my test computer. It was Ok during the compilation but I just received the same error when I started my app.


B4X:
** Activity (main) Create (first time) **
java.lang.NoClassDefFoundError: Failed resolution of: Lnet/sqlcipher/database/SQLiteDatabase;
at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:51)
at b4a.example.main._activity_create(main.java:401)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at b4a.example.main.afterFirstLayout(main.java:105)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
Caused by: java.lang.ClassNotFoundException: net.sqlcipher.database.SQLiteDatabase
... 19 more
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **


My question - are we really out of luck? Is there anyone who was able to apply this aar and continue to use SQLCipher with 16KB requirement?

Compilation works fine - no errors. Checked with the 16KB validation script - Ok. Nut crashed with this error.
 
Top