Error map
LifecycleOwner is attempting to register while current state is RESUMED java.lang.IllegalStateException: LifecycleOwner MainActivity is attempting to register while current state is RESUMED. LifecycleOwners must call register before they are STARTED.
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: Can not perform this action after onSaveInstanceState (fragment transaction)
A FragmentTransaction (or DialogFragment.show/navigation) ran after the Activity saved its state, typically from an async callbac…
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) Activity restarts on rotation and fields reset
The screen rotation destroys and recreates the Activity, losing in-memory state.
'startActivityForResult(Intent!, Int): Unit' is deprecated
Use the Activity Result API instead of request codes.
kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3
A coroutine was cancelled, usually because its scope ended.
java.lang.IllegalArgumentException: Provided camera selector cannot be resolved / Use case binding failed
CameraX couldn't bind a use case to the requested camera.
android.view.WindowLeaked: Activity com.example.MainActivity has leaked window DecorView@a1b2c3 that was originally added here
A dialog was still showing when its Activity was destroyed.
(behavior) Flow collection continues after the app is stopped
Collecting a Flow with `lifecycleScope.launch` doesn't stop when the UI is hidden.
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase
The Room database was closed while a query ran.
(behavior) ViewModel resets when parent re-renders
An `@ObservedObject` owned by the view is recreated whenever the view is.
(behavior) .onAppear is called more than once
A view appears several times, so `onAppear` repeats.
Error running 'app': Default Activity not found
Android Studio can't find an Activity with the LAUNCHER intent filter.
Two steps away (36)
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…
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…
ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml?
An Intent targets an Activity that isn’t declared in the manifest, or an implicit intent has no app to handle it.
WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
A dialog or popup was shown with a context whose Activity is finishing/destroyed, or with the Application context.
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() 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.
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.
android.os.FileUriExposedException: file:///storage/emulated/0/photo.jpg exposed beyond app through ClipData.Item.getUri()
A file:// URI was shared with another app, which Android 7+ forbids.
'onBackPressed(): Unit' is deprecated. Deprecated in Java
The old back handling API is deprecated, and predictive back needs the new dispatcher.
android.os.NetworkOnMainThreadException
The app made a network call on the main (UI) thread, which Android forbids.
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…
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.
Android Emulator: The emulator process for AVD x has terminated / was killed (hypervisor not available)
The Android Emulator crashed or couldn’t start — usually missing hardware acceleration, low disk/RAM, or GPU driver problems.
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.
Flutter: dependOnInheritedWidgetOfExactType<_InheritedTheme>() or dependOnInheritedElement() was called before _HomeState.initState() completed
`Theme.of(context)`, `MediaQuery.of(context)` or `Provider.of(context)` was used in `initState`, where inherited widgets are not…
Networking: Wireshark: TCP ZeroWindow, TCP Window Full — the receiver can't keep up and tells the sender to stop
The receiving application isn't reading data fast enough, so its TCP buffer filled and the sender must pause.
Networking: Thousands of sockets in CLOSE_WAIT — the application is not closing its side of the connection
The other end closed the connection, but your program never called close(), so the socket stays open.
kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized
A `lateinit var` was read before anything assigned it.
'AsyncTask<Params!, Progress!, Result!>' is deprecated. Deprecated in Java
AsyncTask is removed from the recommended APIs.
FATAL EXCEPTION: DefaultDispatcher-worker-1 Process: com.example, PID: 1234
An uncaught exception in a `launch` coroutine kills the process.
IllegalStateException: Module with the Main dispatcher had failed to initialize. For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used
`Dispatchers.Main` was used in a unit test without a test dispatcher.
Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number
The Room entity definitions changed, but the database version wasn’t increased or no migration was provided.
Room: Cannot access database on the main thread since it may potentially lock the UI for a long period of time
A Room DAO query ran on the main thread; Room forbids it by default.
java.lang.IllegalStateException: A migration from 1 to 2 was required but not found. Please provide the necessary Migration path
The Room schema version increased but no migration describes how to upgrade existing data.
SwiftUI: Modifying state during view update, this will cause undefined behavior
A @State/@Published value was changed while SwiftUI was computing a view’s body.
SwiftUI: Publishing changes from background threads is not allowed; make sure to publish values from the main thread
An ObservableObject’s @Published property was updated from a background thread.
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.
Fatal error: No ObservableObject of type SessionStore found. A View.environmentObject(_:) for SessionStore may be missing as an ancestor of this view.
A view reads an `@EnvironmentObject` that no parent provided.
ForEach<Array<Item>, String, Text>: the ID abc occurs multiple times within the collection, this will give undefined results!
ForEach items share the same id.
Background Task 123 ("Task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination
A background task ran too long.
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.
uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library
A dependency needs a higher minSdk than the app declares.
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
The app requires a `uses-library` that this device or emulator image doesn't have.