Hi,
We are trying implement your new library for android “implementation net.zetetic:sqlcipher-android:4.5.2@aar” – community edition but we see this error:
E/SQLiteLog: (1) no such table: room_table_modification_log in “INSERT OR IGNORE INTO room_table_modification_log VALUES(2, 0)”
E/AndroidRuntime: FATAL EXCEPTION: main
Process: PID: 7682
net.zetetic.database.sqlcipher.SQLiteException: no such table: room_table_modification_log (code 1): , while compiling: INSERT OR IGNORE INTO room_table_modification_log VALUES(2, 0)
at net.zetetic.database.sqlcipher.SQLiteConnection.nativePrepareStatement(Native Method)
at net.zetetic.database.sqlcipher.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:922)
at net.zetetic.database.sqlcipher.SQLiteConnection.prepare(SQLiteConnection.java:533)
at net.zetetic.database.sqlcipher.SQLiteSession.prepare(SQLiteSession.java:592)
at net.zetetic.database.sqlcipher.SQLiteProgram.(SQLiteProgram.java:64)
at net.zetetic.database.sqlcipher.SQLiteStatement.(SQLiteStatement.java:37)
at net.zetetic.database.sqlcipher.SQLiteDatabase.executeSql(SQLiteDatabase.java:1992)
at net.zetetic.database.sqlcipher.SQLiteDatabase.execSQL(SQLiteDatabase.java:1901)
at androidx.room.InvalidationTracker.startTrackingTable(InvalidationTracker.java:250)
at androidx.room.InvalidationTracker.syncTriggers(InvalidationTracker.java:559)
at androidx.room.RoomDatabase.internalBeginTransaction(RoomDatabase.java:567)
at androidx.room.RoomDatabase.beginTransaction(RoomDatabase.java:555)
at androidx.room.CoroutinesRoom$Companion$execute$2.invokeSuspend(CoroutinesRoom.kt:65)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at androidx.room.TransactionExecutor$1.run(TransactionExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
Description:
Database initialization works but select from db return error.
Initialization:
System.loadLibrary(“sqlcipher”)
val factory = SupportOpenHelperFactory(password.toByteArray())
return Room
.databaseBuilder(
appContext,
Database::class.java,
DATABASE_NAME
)
.openHelperFactory(
factory
)
.addMigrations(
)
.build()
Libraries:
com.google.dagger/hilt
androidx.room
androidx.paging
net.zetetic:sqlcipher-android
Any hints on what could we do to overcome this error?
Thanks