I am using Sqlite database in one of my Android project. It works fine in all the devices except One Plus Two device.
I am getting exception while trying to open the database. This is the crashlog.
12-23 19:14:35.235: E/SQLiteLog(3133): (11) database corruption at line 53216 of [9491ba7d73]
12-23 19:14:35.235: E/SQLiteLog(3133): (11) statement aborts at 7: [SELECT locale FROM android_metadata UNION SELECT NULL ORDER BY locale DESC LIMIT 1]
12-23 19:14:35.237: E/SQLiteDatabase(3133): Failed to open database '/data/data/com.mycompany.myapp/databases/alcochange.sqlite'.
12-23 19:14:35.237: E/SQLiteDatabase(3133): android.database.sqlite.SQLiteException: Failed to change locale for db '/data/data/com.mycompany.myapp/databases/myapp.sqlite' to 'en_US'.
Please click here to see the full crash log
I have seen other questions like that here, I have tried almost every answers, but nothing works. I have tried this and this.
EDIT: The device runs on Oxygen Lollipop.
/data/data/com.zanec.dryjanuary/databases/alcochange.sqlite/
may not exist. Checkcontext.getDatabasePath(/data/data/com.zanec.dryjanuary/databases/alcochange.sqlite/)
which returnFile
type. – BashfulE/SQLiteDatabase(6278): Caused by: ???
in your crashlog? – Hauler