Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo 打开不保留活动,应用回后台,再进入前台应用崩溃 #9

Closed
xieguangqing opened this issue Jan 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@xieguangqing
Copy link

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.github.fragivity.example/com.github.fragivity.example.MainActivity}: java.lang.IllegalStateException: Restoring the Navigation back stack failed: destination 177236320 cannot be found from the current destination Destination(0x926c814) label=home class=com.github.fragivity.example.HomeFragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3308)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3457)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7562)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: java.lang.IllegalStateException: Restoring the Navigation back stack failed: destination 177236320 cannot be found from the current destination Destination(0x926c814) label=home class=com.github.fragivity.example.HomeFragment
at androidx.navigation.NavController.onGraphCreated(NavController.java:617)
at androidx.navigation.NavController.setGraph(NavController.java:590)
at androidx.navigation.NavController.setGraph(NavController.java:570)
at com.github.fragivity.NavHostUtil.loadRoot(NavHost.kt:111)
at com.github.fragivity.example.MainActivity.onCreate(MainActivity.kt:21)
at android.app.Activity.performCreate(Activity.java:7893)
at android.app.Activity.performCreate(Activity.java:7880)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3283)

@vitaviva vitaviva added the bug Something isn't working label Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants