Probably something really obvious, but I'm struggling to locate the problem-
- My laptop disk died catastrophically, so I've moved B4A onto a desktop and upgraded to V2.71 at the same time.
- On compiling an existing project, I don't get any errors, but when it installs to a device I get "Unfortunately TM Toolkit has stopped" and the log shows:-
The offending line 216 is:-
As far as I can see I've installed everything correctly as per the SQLCipher Tutorial.
Any ideas?
Thanks in advance,
Douglas
- My laptop disk died catastrophically, so I've moved B4A onto a desktop and upgraded to V2.71 at the same time.
- On compiling an existing project, I don't get any errors, but when it installs to a device I get "Unfortunately TM Toolkit has stopped" and the log shows:-
B4X:
** Activity (main) Create, isFirst = true **
main_activity_create (B4A line: 216)
sqlcipherdata.Initialize(File.DirDefaultExternal, "_grj.db", True, dbpassword, File.DirAssets )
java.lang.NoClassDefFoundError: info/guardianproject/database/CursorWindow
at java.lang.Runtime.nativeLoad(Native Method)
at java.lang.Runtime.load(Runtime.java:338)
at java.lang.System.load(System.java:521)
at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:45)
at dny.tmtoolkit.main._activity_create(main.java:373)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at dny.tmtoolkit.main.afterFirstLayout(main.java:89)
at dny.tmtoolkit.main.access$100(main.java:16)
at dny.tmtoolkit.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5454)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: info/guardianproject/database/sqlcipher/SQLiteStatement
... 20 more
Caused by: java.lang.NoClassDefFoundError: info/guardianproject/database/sqlcipher/SQLiteProgram
... 20 more
Caused by: java.lang.NoClassDefFoundError: info/guardianproject/database/sqlcipher/SQLiteQuery
... 20 more
Caused by: java.lang.NoClassDefFoundError: info/guardianproject/database/sqlcipher/SQLiteCompiledSql
... 20 more
Caused by: java.lang.NoClassDefFoundError: info/guardianproject/database/sqlcipher/SQLiteDatabase
... 20 more
Caused by: java.lang.ClassNotFoundException: info.guardianproject.database.sqlcipher.SQLiteDatabase
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
... 20 more
The offending line 216 is:-
B4X:
sqlcipherdata.Initialize(File.DirDefaultExternal, "_grj.db", True, dbpassword, File.DirAssets )
Any ideas?
Thanks in advance,
Douglas