Alexander Karkossa
10/12/2020, 6:58 PMjava.lang.IllegalStateException: Reading a state that was created after the snapshot was taken or in a snapshot that has not yet been applied
at androidx.compose.runtime.snapshots.SnapshotKt.readError(Snapshot.kt:1525)
at androidx.compose.runtime.snapshots.SnapshotKt.readable(Snapshot.kt:1521)
at androidx.compose.runtime.snapshots.SnapshotKt.readable(Snapshot.kt:1512)
at androidx.compose.runtime.SnapshotMutableState.getValue(MutableState.kt:294)
at androidx.compose.foundation.text.TextFieldState.getHasFocus(CoreTextField.kt:537)
at androidx.compose.foundation.text.CoreTextFieldKt$CoreTextField$4$focusObserver$1.invoke(CoreTextField.kt:198)
at androidx.compose.foundation.text.CoreTextFieldKt$CoreTextField$4$focusObserver$1.invoke(Unknown Source:3)
at androidx.compose.ui.node.ModifiedFocusObserverNode.propagateFocusStateChange(ModifiedFocusObserverNode.kt:32)
....
at androidx.compose.runtime.Composer.recomposeToGroupEnd(Composer.kt:1560)
at androidx.compose.runtime.Composer.skipToGroupEnd(Composer.kt:1784)
at androidx.compose.ui.LayoutKt.WithConstraints(Layout.kt:532)
at androidx.compose.material.DrawerKt.BottomDrawerLayout-rxTpieo(Drawer.kt:427)
at de.charlex.xxx.ui.MyAppKt$MyAppContent$1.invoke(MyApp.kt:171) <----- Thats the first line in stacktrace where my sources are referenced.
Line MyApp.kt171
BottomDrawerLayout(
I was not able to find the reason. If i remove the BottomDrawerLayout, the app don't crash anymore. I tried another app, added a BottomDrawerLayout there and .... it worked fine...
I think the reason for the crash is not the BottomDrawerLayout.
Any ideas?caelum19
10/12/2020, 7:18 PMAlexander Karkossa
10/12/2020, 8:51 PM