android.database.sqlite.SQLiteConstraintException: foreign key constraint failed (code 19)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by 7wonders
, 2 years ago
foreign key constraint failed (code 19)
via GitHub by AdamFM
, 3 months ago
UNIQUE constraint failed: requests._file_path (code 2067)
via GitHub by daniele-athome
, 11 months ago
NOT NULL constraint failed: keys_backup.fingerprint (code 1299)
via Stack Overflow by Swaroop Lal
, 1 year ago
UNIQUE constraint failed: device.device_id (code 2067)
via Stack Overflow by Sandeep Mishra
, 1 year ago
UNIQUE constraint failed: studentAttendanceTable.AttendanceId (code 1555)
android.database.sqlite.SQLiteConstraintException: foreign key constraint failed (code 19)
at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:858)
at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754)
at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64)
at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1665)
at com.activeandroid.util.SQLiteUtils.execSql(Unknown Source)

Users with the same issue

11 times, 10 months ago
12 times, 1 year ago
2 times, 1 year ago
18 times, 1 year ago
10 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.