Android Room FOREIGN KEY constraint failed (code 787)

后端 未结 2 666
轮回少年
轮回少年 2020-12-18 15:39

I\'m tying to create a database in Android Room with two foreign keys. Every time I try to insert a track into the database the program chrashes and says that the \"foreign

2条回答
  •  没有蜡笔的小新
    2020-12-18 16:29

    You need to have rows in tables Kategorie and Playlist with a same foreign key as has Track that you are inserting.

提交回复
热议问题