Error map
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 · 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)
IllegalStateException: Fragment x not attached to a context / not attached to an activity
Code called requireContext()/requireActivity()/getString() after the Fragment was detached — usually in an async callback.
(behavior) crash on first launch after device transfer / Auto Backup
Restored app data is incompatible with the new device.
error: [Dagger/IncompatiblyScopedBindings] SingletonComponent scoped with @ActivityScoped may not reference bindings with different scopes
A binding's scope doesn't match the component that uses it.
-[Foo bar]: message sent to deallocated instance 0x600000
An object was used after being freed.
java.lang.ClassCastException: android.widget.Button cannot be cast to android.widget.TextView
A view id in the layout is a different widget type than the one the code expects.
java.lang.IllegalStateException: Hilt Activity must be attached to an @AndroidEntryPoint Application
Hilt isn't initialized because the Application class isn't annotated or registered.
error: [Dagger/MissingBinding] com.example.Repository cannot be provided without an @Inject constructor or an @Provides-annotated method
Dagger or Hilt has no way to create a requested type.
android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.example.Model
A Parcelable in a Bundle or Intent couldn't be restored because its class was not found.
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.
androidx.work.WorkerFactory: Could not instantiate com.example.SyncWorker / NoSuchMethodException: SyncWorker.<init> [Context, WorkerParameters]
WorkManager can't construct your Worker with its default factory.
java.util.ConcurrentModificationException at java.util.ArrayList$Itr.next
A collection was changed while it was being iterated.
CoreData: error: Serious application error. Exception was caught during Core Data change processing
A managed object or context was used on a different thread than it belongs to.
Two steps away (33)
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.
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…
macOS: Time Machine couldn't complete the backup. / The backup disk image could not be mounted / Backup failed with error 18/19/21/22
A Time Machine backup stopped because the destination is unavailable, full, or the backup set is damaged.
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
Code called a method on a view or object that was null, most often a findViewById that returned null.
kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized
A `lateinit var` was read before anything assigned it.
Networking: dhcpd: DHCPDISCOVER from aa:bb:cc:dd:ee:ff via eth0: network 192.168.1.0/24: no free leases
The DHCP server has no unused addresses left in the scope.
error: cannot find symbol class DaggerAppComponent / kaptDebugKotlin FAILED
Annotation processing with kapt failed, so generated classes such as Dagger or Room code are missing.
FATAL EXCEPTION: DefaultDispatcher-worker-1 Process: com.example, PID: 1234
An uncaught exception in a `launch` coroutine kills the process.
Gradle: Expiring Daemon because JVM heap space is exhausted / java.lang.OutOfMemoryError: Java heap space during build
The Gradle daemon (or Kotlin daemon) ran out of memory compiling or dexing the project.
Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
The app accessed memory it shouldn’t — a dangling pointer, released object, unsafe pointer misuse, a data race, or infinite recur…
GitHub Actions: Error: Process completed with exit code 137 (Killed — out of memory)
The command was killed by the system with SIGKILL (128 + 9), almost always because the runner ran out of memory.
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.
Flutter: RenderBox was not laid out: RenderFlex#a1b2c relayoutBoundary=up2 NEEDS-PAINT — Failed assertion: 'hasSize'
A widget was asked for its size or painted before layout finished, usually because a parent gave it unbounded or conflicting cons…
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…
Execution failed for task ':app:bundleRelease'. Error while executing bundletool
Building the Android App Bundle (.aab) failed in the bundle step.
Cannot create an instance of class: Hilt assisted ViewModel requires creationCallback
A ViewModel with assisted parameters needs a factory callback.
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.
java.lang.ClassNotFoundException: Didn't find class "com.example.Model" on path: DexPathList
A class is stripped or renamed by R8 in the release build but still used by reflection.
java.lang.IndexOutOfBoundsException: Index: 5, Size: 3
The code read a list or array position that doesn't exist.
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.
Context.startForegroundService() did not then call Service.startForeground() / ForegroundServiceStartNotAllowedException
A foreground service didn’t call startForeground() within a few seconds, or the app tried to start one from the background where…
java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.example/.SyncService }: app is in background uid UidRecord{...}
Since Android 8 background apps can't freely start services.
WM-WorkerWrapper: Work [ id=… ] was cancelled / state ENQUEUED
A scheduled task stays enqueued and doesn't execute.
java.util.ConcurrentModificationException
A collection was modified while being iterated (even in a single thread).
java.lang.UnsupportedOperationException (List.of / Arrays.asList is immutable)
Code tried to modify an immutable or fixed-size collection.
java.lang.InterruptedException (sleep interrupted)
A blocked thread (sleep, wait, join, queue take) was interrupted by another thread.
android.os.NetworkOnMainThreadException
The app made a network call on the main (UI) thread, which Android forbids.
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.
ANR: Application Not Responding (Input dispatching timed out)
The main thread was blocked for about 5 seconds (input) or a broadcast/service took too long, so Android showed “App isn’t respon…
Map another error
Popular: ERR_HTTP2_PROTOCOL_ERROR5004004031064ORA-00933Critical errorTypeError