我注意到 Google play 中发生了错误,我无法重现它,但它似乎发生在少数用户身上。
exception.class.missing._Unknown_: TableInfo{...}
at androidx.room.RoomOpenHelper.onUpgrade (RoomOpenHelper.java:103)
at net.sqlcipher.database.SupportHelper$1.onUpgrade (SupportHelper.java:46)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase (SQLiteOpenHelper.java:182)
at net.sqlcipher.database.SupportHelper.getWritableDatabase (SupportHelper.java:83)
at androidx.room.RoomDatabase.inTransaction (RoomDatabase.java:622)
at androidx.room.RoomDatabase.assertNotSuspendingTransaction (RoomDatabase.java:399)
知道为什么会这样吗?我的猜测是,由于 R8 代码缩小,但我不知道如何修复它。
我正在为 Android 4.4.3 和 Room 2.3.0 使用 Sqlcipher
谢谢!