I downloadaed a fresh version of 1.70 SQLCipher lmib and put it in my additional library folder. I donwload 4.10.0 aar file and put it in same directory, modify the WML (I have the 2 lines depends on) and If I use 4.10.0; I always have the issue but not with the old (4.5.4). Tested on a fresh new app so can't understand why that work for you and not for me ;-)
issue is : "java.lang.NoClassDefFoundError: Failed resolution of: Lnet/sqlcipher/database/SQLiteDatabase;"
Tested :
- remove "<dependsOn>sqlite-2.4.0.aar</dependsOn>" and use 4.5.4 : issue
- keep "<dependsOn>sqlite-2.4.0.aar</dependsOn>" and use 4.5.4 : valid
- remove "<dependsOn>sqlite-2.4.0.aar</dependsOn>" and use 4.10.0 : issue
- keep "<dependsOn>sqlite-2.4.0.aar</dependsOn>" and use 4.10.0 : issue
I use the simply app joined, have an issue just after "Log("test4")" :
Sub Process_Globals
Public ActionBarHomeClicked As Boolean
Dim mydb As SQLCipher
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim pm As B4XPagesManager
Dim fichier As String
pm.Initialize(Activity)
fichier="mydb.dat"
Log("test1")
If File.Exists(File.DirInternal,fichier) = True Then
Log("test2")
mydb.Initialize(File.DirInternal,fichier,True,"nopass","")
Log("test3")
Else
Log("test4")
[B]mydb.Initialize(File.DirInternal, fichier,True,"nopass","")[/B]
Log("test5")
mydb.ExecNonQuery("CREATE TABLE IF NOT EXISTS configuration (id TEXT(20) NOT NULL, valeur TEXT(255))")
Log("test6")
End If
End Sub