Android - database disk image is malformed

前端 未结 3 654
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 21:10

In my android app I am getting \"database disk image is malformed\" What are the reasons for getting this error?

not closed db? multiple threads accessing the db? or

3条回答
  •  轮回少年
    2020-12-15 21:42

    The error is passed on from the native code to Java, so you have to look at possible causes of SQLite corruption. Here's a webpage on the SQLite website that lists the ones due to bugs in SQLite, and here's another titled How to corrupt your database.

提交回复
热议问题