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
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.
Directly related (12)
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.request.ErrorResult: java.net.UnknownHostException
Coil couldn't load an image.
(behavior) clickable ignored after clip / padding before background
Compose modifiers apply in order, so swapping them changes the result.
Cannot preview in this file — Compiling failed: Cannot find 'X' in scope
The preview's build target fails.
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 Runtime: Detected infinite recomposition loop / state read during composition
A Compose state is written during composition, so the UI keeps recomposing.
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 empty after run / No debuggable applications
Android Studio's Logcat window is empty or filtered out.
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 failed to connect: process not debuggable
Layout Inspector can't connect to the app.
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.
java.lang.IllegalStateException: CompositionLocal LocalNavController not present
A composable read a CompositionLocal that no parent provided.
Two steps away (35)
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: 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.
adb: no devices/emulators found / error: device not found
adb can’t see any connected device or running emulator.
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.
fatal: unable to access 'https://github.com/…': Could not resolve host: github.com
DNS lookup for the Git host failed from this machine.
ssh: connect to host github.com port 22: Connection timed out
Outbound SSH on port 22 is blocked (firewall, corporate or public Wi-Fi).
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.
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.
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 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.
Swift: No such module 'X' (module not found)
Xcode can’t find a Swift package, pod or framework you import.
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…
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…
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…
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.
java.lang.IllegalStateException
A method was called when the object wasn’t in the right state for it.
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.
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`.
java.lang.IndexOutOfBoundsException: Index: 5, Size: 3
The code read a list or array position that doesn't exist.
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.
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 (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).
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.example.permission.C2D_MESSAGE pkg=com.example.old]
Another installed app already declares the same custom permission.
Failure [INSTALL_FAILED_DEXOPT]
The device couldn't optimize the APK's dex code during installation.
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.
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 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.
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 found. Open Gradle Settings
Android Studio's selected Gradle JDK is missing or invalid.
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.
java.lang.IllegalStateException: Failed to measure / AnimatedContent state is null
An animation state changed during measurement.
(behavior) Coil AsyncImage never replaces the placeholder
The image request fails or never starts.
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.
(behavior) Activity restarts on rotation and fields reset
The screen rotation destroys and recreates the Activity, losing in-memory state.
(behavior) TextField loses cursor position when state updates asynchronously
The TextField state is updated asynchronously, so the cursor resets.