Jetpack Compose: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed
A LazyColumn (or verticalScroll) is placed inside another vertically scrolling container, so it gets infinite height.
Vertically scrollable component was measured with an infinity maximum height constraintsinfinity maximum heightHorizontally scrollable component was measured with an infinity maximum width constraints Meaning
Nested scrolling in the same direction gives the inner list unbounded height. Use one LazyColumn with multiple item blocks, or give the inner list a fixed/weighted height.
Common causes
- LazyColumn inside Column(Modifier.verticalScroll)
- LazyColumn inside another LazyColumn item
- Scrollable inside a parent with wrapContent height in the same direction
⚡ Quick fix
- Merge into a single LazyColumn with item {} / items {}
- Give the inner list Modifier.height(...) or weight(1f)
- Remove the outer verticalScroll
Detailed fix by platform
Kotlin
- kotlin
LazyColumn { item { Header() } items(users) { UserRow(it) } item { Footer() } }
How to diagnose
- Hierarchy — Parent scroll containers
- Modifiers — Height constraints
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- A RenderFlex overflowed Flutter: A RenderFlex overflowed by x pixels on the right/bottom
- ActivityNotFoundException ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml?
- adb unauthorized adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set
Most viewed in Android
- Could not resolve Gradle: Could not resolve all files for configuration / Could not resolve dependency
- Unsupported class file major version Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run
- INSTALL_PARSE_FAILED_NO_CERTIFICATES INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026