```Key "..." was already used. If you are using La...
# compose
z
Copy code
Key "..." was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item.
For crashes like these, is there any work being done to improve the stack traces? I have a billion LazyColumn/Rows in my project, and while the error message explains the issue perfectly, I have zero insight into where it actually happens.
The full stack trace is available here
a
The key is printed in the stacktrace so you could add a prefix to the keys, unique for each LazyColumn/Row
Copy code
items(fooList, key = { "fl-${it.id}" })
z
Thanks for the suggestion @André Kindwall; Id love to see something "better" in terms of there being less boilerplate code. I would have to apply that to 300+ places in my codebase 😅 Preferrably what Im looking for is something akin to how crashes with views were reported back in the XML days, where the crash might occur inside a view, but it would still inevitably trace up to something in a fragment, activity, etc.
1297 Views