Error map

RenderBox was not laid out Flutter: RenderBox was not laid out: RenderFlex#a1b2c relayoutBoundary=up2 NEEDS-PAINT — Failed assertion: 'hasSize'

Flutter / Dart · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (9). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

RenderBox was not laid out — Flutter: RenderBox was not laid out: RenderFlex#a1b2c relayoutBoundary=up2 NEEDS-PAINT — Failed assertion: 'hasSize' (Flutter / Dart)RenderBox w…A RenderFlex overflowed — Flutter: A RenderFlex overflowed by x pixels on the right/bottom (Flutter / Dart)A RenderFlex overfl…measured with an infinity maximum height — Jetpack Compose: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed (Android)measured with an in…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 Pa…Vertical viewport was given unbounded height — Flutter: Vertical viewport was given unbounded height. Viewports expand in the scrolling direction to fill their container (Flutter / Dart)Vertical viewport w…BoxConstraints 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 forc…Cleartext HTTP traffic not permitted — Flutter (Android): java.io.IOException: Cleartext HTTP traffic to api.example.com not permitted (Flutter / Dart)Cleartext HTTP traf…There are multiple heroes that share the same tag — Flutter: There are multiple heroes that share the same tag within a subtree (Flutter / Dart)There are multiple …Dependency requires compileSdk 34 or later — Android Gradle: Execution failed for task ':app:checkDebugAarMetadata'. Dependency requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs (Flutter / Dart)Dependency requires…Android license status unknown / licenses not accepted — flutter doctor: Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses (Flutter / Dart)Android license sta…setState() called after dispose() — Flutter: setState() called after dispose(): _MyState#1a2b3 (lifecycle state: defunct, not mounted) (Flutter / Dart)setState() called a…Null check operator used on a null value — Dart/Flutter: Null check operator used on a null value (Flutter / Dart)Null check operator…No Material widget found — Flutter: No Material widget found. TextField widgets require a Material widget ancestor (Flutter / Dart)No Material widget …Too many re-renders — Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. (React)Too many re-rendersadb unauthorized — adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set (Android)adb unauthorizedno devices/emulators found — adb: no devices/emulators found / error: device not found (Android)no devices/emulator…Scaffold.of() called with a context that does not contain a Scaffold — Flutter: Scaffold.of() called with a context that does not contain a Scaffold (Flutter / Dart)Scaffold.of() calle…Looking up a deactivated widget's ancestor is unsafe — Flutter: Looking up a deactivated widget's ancestor is unsafe. At this point the state of the widget's element tree is no longer stable (Flutter / Dart)Looking up a deacti…setState() or markNeedsBuild() called during build — Flutter: setState() or markNeedsBuild() called during build. This widget cannot be marked as needing to build because the framework is already in the process of building widgets (Flutter / Dart)setState() or markN…NetworkOnMainThreadException — android.os.NetworkOnMainThreadException (Android)NetworkOnMainThread…NSURLErrorDomain Code=-1009 — Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." (iOS)NSURLErrorDomain Co…NSURLErrorDomain Code=-1001 — Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." (iOS)NSURLErrorDomain Co…Navigator operation requested with a context that does not include a Navigator — Flutter: Navigator operation requested with a context that does not include a Navigator (Flutter / Dart)Navigator operation…A Ticker was active when the State was disposed — Flutter: _HomeState#abc(ticker active) was disposed with an active Ticker. State.dispose() implementations must call dispose() on all their AnimationControllers (Flutter / Dart)A Ticker was active…Could not resolve — Gradle: Could not resolve all files for configuration / Could not resolve dependency (Android)Could not resolveManifest merger failed — Manifest merger failed: android:exported needs to be explicitly specified (Android)Manifest merger fai…Duplicate class — Duplicate class X found in modules A and B (Android)Duplicate classadb server version doesn't match — adb server version (41) doesn't match this client (39); killing... (Android)adb server version …SDK location not found — SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in local.properties (Android)SDK location not fo…Default FirebaseApp is not initialized — IllegalStateException: Default FirebaseApp is not initialized in this process (Android)Default FirebaseApp…

Directly related (9)

A RenderFlex overflowedFlutter / Dart

Flutter: A RenderFlex overflowed by x pixels on the right/bottom

A Row or Column’s children need more space than available, so Flutter draws the yellow-black overflow stripes.

measured with an infinity maximum heightAndroid

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.

Incorrect use of ParentDataWidgetFlutter / Dart

Flutter: Incorrect use of ParentDataWidget. The ParentDataWidget Expanded(flex: 1) wants to apply ParentData of type FlexParentData to a RenderObject

A widget like `Expanded`, `Flexible`, `Positioned` or `TableCell` was placed under a parent that does not support it.

Vertical viewport was given unbounded heightFlutter / Dart

Flutter: Vertical viewport was given unbounded height. Viewports expand in the scrolling direction to fill their container

A scrollable (ListView, GridView) sits inside a parent that does not limit its height, so it tries to be infinitely tall.

BoxConstraints forces an infinite widthFlutter / Dart

Flutter: BoxConstraints forces an infinite width. These invalid constraints were provided to RenderStack's layout() function (TextField in a Row)

A widget that needs a finite width, like a `TextField` or `Container` with no size, was placed where the parent offers unlimited…

Cleartext HTTP traffic not permittedFlutter / Dart

Flutter (Android): java.io.IOException: Cleartext HTTP traffic to api.example.com not permitted

Android 9+ blocks plain `http://` requests by default; the app must use HTTPS or explicitly allow cleartext for that host.

There are multiple heroes that share the same tagFlutter / Dart

Flutter: There are multiple heroes that share the same tag within a subtree

Two `Hero` widgets with the same tag exist on one screen during a route transition.

Dependency requires compileSdk 34 or laterFlutter / Dart

Android Gradle: Execution failed for task ':app:checkDebugAarMetadata'. Dependency requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs

A dependency was built against a newer Android API than your project's `compileSdk`.

Android license status unknown / licenses not acceptedFlutter / Dart

flutter doctor: Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses

The Android SDK licenses have not been accepted, so builds cannot download or use SDK components.

Two steps away (20)

setState() called after dispose()Flutter / Dart

Flutter: setState() called after dispose(): _MyState#1a2b3 (lifecycle state: defunct, not mounted)

An async callback (network, timer, stream) finished after the widget was removed and then called setState.

Null check operator used on a null valueFlutter / Dart

Dart/Flutter: Null check operator used on a null value

The ! operator was applied to a variable that was null at runtime.

No Material widget foundFlutter / Dart

Flutter: No Material widget found. TextField widgets require a Material widget ancestor

A Material-design widget (TextField, ListTile, InkWell, Chip) was placed outside a `Scaffold`, `Material` or `Card`, so it has no…

Too many re-rendersReact

Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.

A state update runs during render, which triggers another render, which updates state again — forever.

adb unauthorizedAndroid

adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set

The phone hasn’t accepted your computer’s RSA key for USB debugging yet.

no devices/emulators foundAndroid

adb: no devices/emulators found / error: device not found

adb can’t see any connected device or running emulator.

Scaffold.of() called with a context that does not contain a ScaffoldFlutter / Dart

Flutter: Scaffold.of() called with a context that does not contain a Scaffold

You called `Scaffold.of(context)` (or `ScaffoldMessenger`) using the same `BuildContext` that created the Scaffold, which is abov…

Looking up a deactivated widget's ancestor is unsafeFlutter / Dart

Flutter: Looking up a deactivated widget's ancestor is unsafe. At this point the state of the widget's element tree is no longer stable

You used a `BuildContext` after its widget was removed from the tree — typically after an `await` when the user already navigated…

setState() or markNeedsBuild() called during buildFlutter / Dart

Flutter: setState() or markNeedsBuild() called during build. This widget cannot be marked as needing to build because the framework is already in the process of building widgets

State was changed while Flutter was building widgets, for example calling `setState` or a notifier from inside `build`.

NetworkOnMainThreadExceptionAndroid

android.os.NetworkOnMainThreadException

The app made a network call on the main (UI) thread, which Android forbids.

NSURLErrorDomain Code=-1009iOS

Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline."

URLSession couldn’t reach the network — the device is offline, the app’s cellular data is disabled, or the simulator lost network…

NSURLErrorDomain Code=-1001iOS

Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."

The server didn’t respond within URLSession’s timeout (60 s default) — slow server, unreachable host on this network, or a stalle…

Navigator operation requested with a context that does not include a NavigatorFlutter / Dart

Flutter: Navigator operation requested with a context that does not include a Navigator

`Navigator.push/pop` was called with a context above the `MaterialApp`, so no Navigator exists in the lookup path.

A Ticker was active when the State was disposedFlutter / Dart

Flutter: _HomeState#abc(ticker active) was disposed with an active Ticker. State.dispose() implementations must call dispose() on all their AnimationControllers

An `AnimationController` was still running when its `State` was disposed, because `dispose()` did not release it.

Could not resolveAndroid

Gradle: Could not resolve all files for configuration / Could not resolve dependency

Gradle couldn’t download a dependency — wrong coordinates/version, missing repository, offline mode, or network/proxy issues.

Manifest merger failedAndroid

Manifest merger failed: android:exported needs to be explicitly specified

Targeting Android 12 (API 31)+ requires `android:exported` on every activity, service or receiver that has an intent-filter.

Duplicate classAndroid

Duplicate class X found in modules A and B

Two dependencies ship the same class — typically old Android Support libraries mixed with AndroidX, or Kotlin stdlib-jdk7/jdk8 ve…

adb server version doesn't matchAndroid

adb server version (41) doesn't match this client (39); killing...

Two different adb binaries are running — e.g. Android Studio’s SDK adb and another one on PATH (Homebrew, Genymotion, older SDK).

SDK location not foundAndroid

SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in local.properties

Gradle doesn’t know where the Android SDK is installed.

Default FirebaseApp is not initializedAndroid

IllegalStateException: Default FirebaseApp is not initialized in this process

Firebase couldn’t initialise because google-services.json or the Google Services Gradle plugin is missing/misapplied, or initiali…