<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/avoid-this-app-crash-issue-in-a-production--bjjohldfe" -->

---
title: Avoid this App Crash Issue in a Production! 🚫 | daily.dev
description: A production crash caused by duplicate keys in a Jetpack Compose lazy layout is examined, along with several solutions. When passing keys to a LazyColumn,...
canonical: https://daily.dev/posts/avoid-this-app-crash-issue-in-a-production--bjjohldfe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Avoid this App Crash Issue in a Production! 🚫 | daily.dev
og:description: A production crash caused by duplicate keys in a Jetpack Compose lazy layout is examined, along with several solutions. When passing keys to a LazyColumn,...
og:url: https://daily.dev/posts/avoid-this-app-crash-issue-in-a-production--bjjohldfe
og:image: https://api.daily.dev/og/posts/bJJohlDfE.png
og:image:alt: Avoid this App Crash Issue in a Production! 🚫
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[Stevdza-San](https://daily.dev/sources/stevdzasan)

[Watch video](https://api.daily.dev/r/bJJohlDfE)

# [Avoid this App Crash Issue in a Production! 🚫](https://api.daily.dev/r/bJJohlDfE "Go to post")

This title could be clearer and more informative. Try out Clickbait Shield for free (5 uses left this month).

A production crash caused by duplicate keys in a Jetpack Compose lazy layout is examined, along with several solutions. When passing keys to a LazyColumn, duplicate values trigger an IllegalArgumentException. Fixes include composing unique keys from multiple fields (e.g., id + email), filtering duplicates with Kotlin's distinctBy, tracking and visually flagging duplicates in the UI, and converting the list to a map grouped by ID to handle duplicates gracefully without crashing.

[#android](/tags/android "Check all #android posts")[#kotlin](/tags/kotlin "Check all #kotlin posts")[#jetpack-compose](/tags/jetpack-compose "Check all #jetpack-compose posts")

Mar 22 • 5m watch time

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughts Post

Share this post

[![Stevdza-San's image](https://media.daily.dev/image/upload/s--IthzHSnd--/f_auto,q_auto/v1774179041/logos/stevdzasan?_a=BAMAMiWQ0)](https://daily.dev/sources/stevdzasan)

[Stevdza-San](https://daily.dev/sources/stevdzasan "https://daily.dev/sources/stevdzasan")

3 Followers

•

8 Upvotes

#### Would you recommend this post?

Copy link

Slack

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Avoid this App Crash Issue in a Production! 🚫","url":"https://daily.dev/posts/avoid-this-app-crash-issue-in-a-production--bjjohldfe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/avoid-this-app-crash-issue-in-a-production--bjjohldfe"},"datePublished":"2026-03-22T11:31:01.663Z","dateModified":"2026-03-22T11:37:50.675Z","description":"A production crash caused by duplicate keys in a Jetpack Compose lazy layout is examined, along with several solutions. When passing keys to a LazyColumn,...","image":"https://i.ytimg.com/vi/zNT6thZzJJM/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/zNT6thZzJJM/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Stevdza-San","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Stevdza-San","logo":"https://media.daily.dev/image/upload/s--IthzHSnd--/f_auto,q_auto/v1774179041/logos/stevdzasan?_a=BAMAMiWQ0","url":"https://daily.dev/sources/stevdzasan"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/avoid-this-app-crash-issue-in-a-production--bjjohldfe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"android,kotlin,jetpack-compose","timeRequired":"PT5M","video":{"@type":"VideoObject","name":"Avoid this App Crash Issue in a Production! 🚫","description":"A production crash caused by duplicate keys in a Jetpack Compose lazy layout is examined, along with several solutions. When passing keys to a LazyColumn,...","thumbnailUrl":"https://i.ytimg.com/vi/zNT6thZzJJM/sddefault.jpg","uploadDate":"2026-03-22T11:31:01.663Z","duration":"PT5M","url":"https://api.daily.dev/r/bJJohlDfE","embedUrl":"https://www.youtube.com/embed/zNT6thZzJJM"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Stevdza-San","item":"https://daily.dev/sources/stevdzasan"},{"@type":"ListItem","position":3,"name":"Avoid this App Crash Issue in a Production! 🚫"}]}
```

