measured with an infinity maximum height Android Origin: On your device Last updated 13 Oct 2026

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.

Exact message you may see Vertically scrollable component was measured with an infinity maximum height constraintsinfinity maximum heightHorizontally scrollable component was measured with an infinity maximum width constraints
Seen on: Android

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

  1. Merge into a single LazyColumn with item {} / items {}
  2. Give the inner list Modifier.height(...) or weight(1f)
  3. Remove the outer verticalScroll

Detailed fix by platform

Kotlin

  1. kotlin
    LazyColumn {
        item { Header() }
        items(users) { UserRow(it) }
        item { Footer() }
    }

How to diagnose

  1. Hierarchy — Parent scroll containers
  2. 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:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

A RenderFlex overflowed — Flutter: A RenderFlex overflowed by x pixels on the right/bottom (Flutter / Dart)A RenderFlex overflow…ActivityNotFoundException — ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml? (Android)ActivityNotFoundExcep…adb unauthorized — adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set (Android)adb unauthorizedAndroid resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource link…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar no…ANR — ANR: Application Not Responding (Input dispatching timed out) (Android)ANRBoxConstraints forces an infinite width — Flutter: BoxConstraints forces an infinite width. These invalid constraints were provided to RenderStack's layout() function (TextField in a Row) (Flutter / Dart)BoxConstraints forces…Incorrect use of ParentDataWidget — Flutter: Incorrect use of ParentDataWidget. The ParentDataWidget Expanded(flex: 1) wants to apply ParentData of type FlexParentData to a RenderObject (Flutter / Dart)Incorrect use of Pare…measured …

Explore the map of this error Full error map →

🧠 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.