android.database.sqlite.SQLiteConstraintException: error code 19: constraint failedexception

后端 未结 2 829
自闭症患者
自闭症患者 2020-12-10 12:00

I created a table named resources but when I insert values in it, this exception is thrown:

android.database.sqlite.SQLiteConstraintException:
error         


        
2条回答
  •  死守一世寂寞
    2020-12-10 12:36

    Constraint failed usually indicates that you did something like pass a null value into a column that you declare as not null when you create your table.

提交回复
热议问题