Room database - Foreign Key Constraint Failed Error code 787
问题 I am getting the above problem, and am unable to solve even while looking at other similar questions and their solutions, as well as the sqlite document on foreign keys. I understand that a foreign key must exist in the parent table first before it can be created in the child table. However, even though that was done first the problem is still there. This is how my program flows until the point where it crashes: MainActivity -> Create Trip -> Shows up as a RecyclerView -> Click on it to enter