Relative Content

Tag Archive for androidandroid-roomkotlin-stateflowlazycolumn

get data from room and IllegalArgumentException: Key “968031” was already used

In my application I get the list of films by api and can add them to the list of favourites which is stored in the database room. So on the screen with the list of favourite films when I try to delete them which requires redrawing the screen the whole list is updated but not only the deleted item and the application crashes with this error.
“ang.IllegalArgumentException: Key “968031” was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item.”