Error map

Compose preview: Render problem / failed to instantiate Failed to instantiate one or more classes / java.lang.NoSuchMethodError in Compose preview

Android · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). 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.

Compose preview: Render problem / failed to instantiate — Failed to instantiate one or more classes / java.lang.NoSuchMethodError in Compose preview (Android)Compose pre…No connected devices / device not found — flutter run: No connected devices found; check 'flutter doctor'. Expected at least one device (Flutter / Dart)No connected device…Coil: ImageRequest failed / SuccessResult expected — coil.request.ErrorResult: java.net.UnknownHostException (Android)Coil: ImageRequest …Compose: click area wrong / Modifier order has no effect — (behavior) clickable ignored after clip / padding before background (Android)Compose: click area…Xcode Preview: Cannot preview in this file (build for iOS Simulator failed) — Cannot preview in this file — Compiling failed: Cannot find 'X' in scope (iOS)Xcode Preview: Cann…Compose Compiler requires a different Kotlin version — This version (1.5.3) of the Compose Compiler requires Kotlin version 1.9.10 but you appear to be using Kotlin version 1.9.0 (Android)Compose Compiler re…Compose: Reading a state in the wrong scope / infinite recomposition — Compose Runtime: Detected infinite recomposition loop / state read during composition (Android)Compose: Reading a …LazyColumn: Key was already used — java.lang.IllegalArgumentException: Key "42" was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item. (Android)LazyColumn: Key was…Logcat shows nothing / No debuggable processes — Logcat empty after run / No debuggable applications (Android)Logcat shows nothin…Android Studio too old for this Android Gradle plugin — This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling the Android Gradle Plugin (Android)Android Studio too …Layout Inspector: Unable to attach / not responding — Layout Inspector failed to connect: process not debuggable (Android)Layout Inspector: U…No ViewModelStoreOwner was provided via LocalViewModelStoreOwner — java.lang.IllegalStateException: No ViewModelStoreOwner was provided via LocalViewModelStoreOwner (Android)No ViewModelStoreOw…CompositionLocal not present — java.lang.IllegalStateException: CompositionLocal LocalNavController not present (Android)CompositionLocal no…INSTALL_FAILED_USER_RESTRICTED — INSTALL_FAILED_USER_RESTRICTED: Install canceled by user (Xiaomi/MIUI, Oppo, Vivo) (Android)INSTALL_FAILED_USER…adb 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…RPC failed — error: RPC failed; HTTP 400 curl 22 / curl 92 HTTP/2 stream was not closed cleanly — the remote end hung up unexpectedly (Git)RPC failedCould not resolve host — fatal: unable to access 'https://github.com/…': Could not resolve host: github.com (Git)Could not resolve h…port 22 timed out — ssh: connect to host github.com port 22: Connection timed out (Git)port 22 timed outCalledFromWrongThreadException — CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views (Android)CalledFromWrongThre…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…A RenderFlex overflowed — Flutter: A RenderFlex overflowed by x pixels on the right/bottom (Flutter / Dart)A RenderFlex overfl…Signing requires a development team — Signing for "App" requires a development team. Select a development team in the Signing & Capabilities editor (iOS)Signing requires a …No such module — Swift: No such module 'X' (module not found) (iOS)No such moduleUndefined symbols for architecture — Undefined symbol(s) for architecture arm64 — linker command failed with exit code 1 (iOS)Undefined symbols f…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar …Android resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource li…incompatible version of Kotlin — Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0 (Android)incompatible versio…IllegalStateException — java.lang.IllegalStateException (Java)IllegalStateExcepti…TransactionTooLargeException — android.os.TransactionTooLargeException: data parcel size x bytes (Android)TransactionTooLarge…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…IndexOutOfBoundsException: Index 5 out of bounds for length 3 — java.lang.IndexOutOfBoundsException: Index: 5, Size: 3 (Android)IndexOutOfBoundsExc…RecyclerView: Inconsistency detected. Invalid item position — java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 4(offset:4).state:10 (Android)RecyclerView: Incon…Play Console: You uploaded an APK signed with the wrong key — Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again. (Android)Play Console: You u…adb server version doesn't match — adb server version (41) doesn't match this client (39); killing... (Android)adb server version …INSTALL_FAILED_DUPLICATE_PERMISSION — Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.example.permission.C2D_MESSAGE pkg=com.example.old] (Android)INSTALL_FAILED_DUPL…INSTALL_FAILED_DEXOPT — Failure [INSTALL_FAILED_DEXOPT] (Android)INSTALL_FAILED_DEXO…This app can't run on your PC — This app can't run on your PC — To find a version for your PC, check with the software publisher (Windows)This app can't run …Android Gradle plugin requires a newer Gradle — The Android Gradle plugin supports only Gradle version 8.x and higher. Current Gradle version is 7.x (Android)Android Gradle plug…Android Gradle plugin requires Java 17 — Android Gradle plugin requires Java 17 to run. You are currently using Java 11 (Android)Android Gradle plug…Gradle sync failed: Connection reset / Could not install Gradle distribution — Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.7-bin.zip'. Connection reset (Android)Gradle sync failed:…Invalid Gradle JDK configuration found — Invalid Gradle JDK configuration found. Open Gradle Settings (Android)Invalid Gradle JDK …RuntimeException: Cannot create an instance of class ViewModel — java.lang.RuntimeException: Cannot create an instance of class com.example.MainViewModel Caused by: java.lang.NoSuchMethodException: MainViewModel.<init> [] (Android)RuntimeException: C…Compose: Crossfade/AnimatedContent targetState crash — java.lang.IllegalStateException: Failed to measure / AnimatedContent state is null (Android)Compose: Crossfade/…AsyncImage stuck on placeholder in Compose — (behavior) Coil AsyncImage never replaces the placeholder (Android)AsyncImage stuck on…Error: Could not find the correct Provider — Flutter: Error: Could not find the correct Provider<CartModel> above this Consumer<CartModel> Widget (Flutter / Dart)Error: Could not fi…State lost on rotation / activity recreated — (behavior) Activity restarts on rotation and fields reset (Android)State lost on rotat…Compose TextField cursor jumps to start / text resets — (behavior) TextField loses cursor position when state updates asynchronously (Android)Compose TextField c…

Directly related (12)

No connected devices / device not foundFlutter / Dart

flutter run: No connected devices found; check 'flutter doctor'. Expected at least one device

Flutter cannot see any emulator, simulator, browser or phone to run on.

Coil: ImageRequest failed / SuccessResult expectedAndroid

coil.request.ErrorResult: java.net.UnknownHostException

Coil couldn't load an image.

Compose: click area wrong / Modifier order has no effectAndroid

(behavior) clickable ignored after clip / padding before background

Compose modifiers apply in order, so swapping them changes the result.

Xcode Preview: Cannot preview in this file (build for iOS Simulator failed)iOS

Cannot preview in this file — Compiling failed: Cannot find 'X' in scope

The preview's build target fails.

Compose Compiler requires a different Kotlin versionAndroid

This version (1.5.3) of the Compose Compiler requires Kotlin version 1.9.10 but you appear to be using Kotlin version 1.9.0

The Compose compiler plugin is tied to one exact Kotlin release and yours differs.

Compose: Reading a state in the wrong scope / infinite recompositionAndroid

Compose Runtime: Detected infinite recomposition loop / state read during composition

A Compose state is written during composition, so the UI keeps recomposing.

LazyColumn: Key was already usedAndroid

java.lang.IllegalArgumentException: Key "42" was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item.

Two items in a lazy list share the same key.

Logcat shows nothing / No debuggable processesAndroid

Logcat empty after run / No debuggable applications

Android Studio's Logcat window is empty or filtered out.

Android Studio too old for this Android Gradle pluginAndroid

This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling the Android Gradle Plugin

The IDE can't open a project using a newer AGP.

Layout Inspector: Unable to attach / not respondingAndroid

Layout Inspector failed to connect: process not debuggable

Layout Inspector can't connect to the app.

No ViewModelStoreOwner was provided via LocalViewModelStoreOwnerAndroid

java.lang.IllegalStateException: No ViewModelStoreOwner was provided via LocalViewModelStoreOwner

`viewModel()` was called from a composable that has no ViewModel store, such as a Preview or ComposeView without an owner.

CompositionLocal not presentAndroid

java.lang.IllegalStateException: CompositionLocal LocalNavController not present

A composable read a CompositionLocal that no parent provided.

Two steps away (35)

INSTALL_FAILED_USER_RESTRICTEDAndroid

INSTALL_FAILED_USER_RESTRICTED: Install canceled by user (Xiaomi/MIUI, Oppo, Vivo)

The phone’s manufacturer layer blocked installs over USB — Xiaomi/MIUI, Oppo/ColorOS and Vivo require extra developer settings.

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.

RPC failedGit

error: RPC failed; HTTP 400 curl 22 / curl 92 HTTP/2 stream was not closed cleanly — the remote end hung up unexpectedly

A large HTTPS push/clone broke mid-transfer — size limits, proxies or flaky HTTP/2.

Could not resolve hostGit

fatal: unable to access 'https://github.com/…': Could not resolve host: github.com

DNS lookup for the Git host failed from this machine.

port 22 timed outGit

ssh: connect to host github.com port 22: Connection timed out

Outbound SSH on port 22 is blocked (firewall, corporate or public Wi-Fi).

CalledFromWrongThreadExceptionAndroid

CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views

Background code updated a View directly; UI changes must happen on the main thread.

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.

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.

Signing requires a development teamiOS

Signing for "App" requires a development team. Select a development team in the Signing & Capabilities editor

No Apple developer team is selected for the target, so Xcode can’t sign the app.

No such moduleiOS

Swift: No such module 'X' (module not found)

Xcode can’t find a Swift package, pod or framework you import.

Undefined symbols for architectureiOS

Undefined symbol(s) for architecture arm64 — linker command failed with exit code 1

The linker can’t find the implementation of a symbol your code uses — a missing framework/library, a file not in the target, or a…

android:attr/lStar not foundAndroid

AAPT: error: resource android:attr/lStar not found

A dependency (androidx.core 1.7+) uses an attribute from Android 12 (API 31), but your module compiles against an older compileSd…

Android resource linking failedAndroid

AAPT: error: resource x (aka y) not found — Android resource linking failed

A layout, manifest or style references a resource (drawable, string, style, attribute) that doesn’t exist in the module or its de…

incompatible version of KotlinAndroid

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0

A dependency was compiled with a newer Kotlin version than your project’s Kotlin Gradle plugin can read.

IllegalStateExceptionJava

java.lang.IllegalStateException

A method was called when the object wasn’t in the right state for it.

TransactionTooLargeExceptionAndroid

android.os.TransactionTooLargeException: data parcel size x bytes

Too much data was put into a Bundle/Intent/saved state, exceeding the ~1 MB Binder transaction buffer.

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

IndexOutOfBoundsException: Index 5 out of bounds for length 3Android

java.lang.IndexOutOfBoundsException: Index: 5, Size: 3

The code read a list or array position that doesn't exist.

RecyclerView: Inconsistency detected. Invalid item positionAndroid

java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 4(offset:4).state:10

The adapter's data changed without the right notify call while RecyclerView was laying out.

Play Console: You uploaded an APK signed with the wrong keyAndroid

Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again.

The upload key doesn't match the one registered for this app.

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

INSTALL_FAILED_DUPLICATE_PERMISSIONAndroid

Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.example.permission.C2D_MESSAGE pkg=com.example.old]

Another installed app already declares the same custom permission.

INSTALL_FAILED_DEXOPTAndroid

Failure [INSTALL_FAILED_DEXOPT]

The device couldn't optimize the APK's dex code during installation.

This app can't run on your PCWindows

This app can't run on your PC — To find a version for your PC, check with the software publisher

The program was built for another architecture (32/64-bit, ARM) or is blocked by S mode/compatibility, or the file is corrupt.

Android Gradle plugin requires a newer GradleAndroid

The Android Gradle plugin supports only Gradle version 8.x and higher. Current Gradle version is 7.x

The Android Gradle plugin (AGP) in your build needs a newer Gradle than the wrapper provides.

Android Gradle plugin requires Java 17Android

Android Gradle plugin requires Java 17 to run. You are currently using Java 11

This AGP version runs on JDK 17 (or newer) and Gradle is currently started with an older JDK.

Gradle sync failed: Connection reset / Could not install Gradle distributionAndroid

Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.7-bin.zip'. Connection reset

Android Studio can't download the Gradle version the wrapper asks for.

Invalid Gradle JDK configuration foundAndroid

Invalid Gradle JDK configuration found. Open Gradle Settings

Android Studio's selected Gradle JDK is missing or invalid.

RuntimeException: Cannot create an instance of class ViewModelAndroid

java.lang.RuntimeException: Cannot create an instance of class com.example.MainViewModel Caused by: java.lang.NoSuchMethodException: MainViewModel.<init> []

The default ViewModel factory can only build a ViewModel with a no-argument (or Application) constructor.

Compose: Crossfade/AnimatedContent targetState crashAndroid

java.lang.IllegalStateException: Failed to measure / AnimatedContent state is null

An animation state changed during measurement.

AsyncImage stuck on placeholder in ComposeAndroid

(behavior) Coil AsyncImage never replaces the placeholder

The image request fails or never starts.

Error: Could not find the correct ProviderFlutter / Dart

Flutter: Error: Could not find the correct Provider<CartModel> above this Consumer<CartModel> Widget

A widget asked Provider for an object that is not above it in the widget tree.

State lost on rotation / activity recreatedAndroid

(behavior) Activity restarts on rotation and fields reset

The screen rotation destroys and recreates the Activity, losing in-memory state.

Compose TextField cursor jumps to start / text resetsAndroid

(behavior) TextField loses cursor position when state updates asynchronously

The TextField state is updated asynchronously, so the cursor resets.