Possible to get specific error details from Android SQLiteConstraintException?

前端 未结 2 1165
我寻月下人不归
我寻月下人不归 2021-01-12 05:16

I\'m getting the following error for certain data, and concept is clear enough:

android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (c         


        
2条回答
  •  既然无缘
    2021-01-12 05:33

    Simply you can take out that SQLite file from your device and then load it in a SQLite browser app. So, you can now attempt to execute the same transaction and see what is going on.

    SQLite Browsers:

    • SQLite Browser
    • SQLite Manager
    • SQLite Studio

提交回复
热议问题