An Android SQLiteDatabaseCorruptException was thrown while trying to set the journal mode on a SQLite database connection. The error message indicated that the file being accessed was not a valid database file. The exception occurred deep within the Android SQLite database access classes and APIs during an attempt to open and query the database.
An Android SQLiteDatabaseCorruptException was thrown while trying to set the journal mode on a SQLite database connection. The error message indicated that the file being accessed was not a valid database file. The exception occurred deep within the Android SQLite database access classes and APIs during an attempt to open and query the database.
An Android SQLiteDatabaseCorruptException was thrown while trying to set the journal mode on a SQLite database connection. The error message indicated that the file being accessed was not a valid database file. The exception occurred deep within the Android SQLite database access classes and APIs during an attempt to open and query the database.
SQLiteDatabaseCorruptException: file is not a database
(code 26 SQLITE_NOTADB): , while compiling: PRAGMA journal_mode at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection. java:903) at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:648 ) at android.database.sqlite.SQLiteConnection.setJournalMode(SQLiteConnection.java:333) at android.database.sqlite.SQLiteConnection.setWalModeFromConfiguration(SQLiteConnecti on.java:298) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:217) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:195) at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionP ool.java:503) at android.database.sqlite.SQLiteConnectionPool.tryAcquireNonPrimaryConnectionLocked(S QLiteConnectionPool.java:987) at android.database.sqlite.SQLiteConnectionPool.waitForConnection(SQLiteConnectionPool .java:693) at android.database.sqlite.SQLiteConnectionPool.acquireConnection(SQLiteConnectionPool .java:378) at android.database.sqlite.SQLiteSession.acquireConnection(SQLiteSession.java:894) at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:586) at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58) at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37) at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.jav a:46) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1408 ) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1383 ) at o.wf2.(ﹺSourceFile:3) at androidx.room.RoomDatabase.query(SourceFile:7) at o.f51.ˋ(SourceFile:1) at o.a18.ˋ(SourceFile:5) at o.f18.run(SourceFile:1) at o.da6$a.run(SourceFile:1) 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:764)