[NavigationBasicSample] crash
See original GitHub issueTitleScreen —> Register —> Match —> InGame —> ResultsWinner/GameOver —> Match, then click ‘Back Key’ back to Register, then click SIGN UP, crash.
log:
com.example.android.navigationsample E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.android.navigationsample, PID: 3184 java.lang.IllegalArgumentException: navigation destination com.example.android.navigationsample:id/action_register_to_match is unknown to this NavController at androidx.navigation.NavController.navigate(NavController.java:669) at androidx.navigation.NavController.navigate(NavController.java:628) at androidx.navigation.NavController.navigate(NavController.java:616) at com.example.android.navigationsample.Register$onCreateView$1.onClick(Register.kt:39) at android.view.View.performClick(View.java:6266) at android.view.View$PerformClick.run(View.java:24730) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:171) at android.app.ActivityThread.main(ActivityThread.java:6672) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:246) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
就是游戏一次无论输赢,回到匹配的界面,再点击返回按钮回到登录界面,再次点登录按钮会崩溃。 原因没有找到。
英文不好,大佬看到可以帮忙翻译一下,谢谢
Issue Analytics
- State:
- Created 5 years ago
- Comments:22 (1 by maintainers)
Top GitHub Comments
bug returns on 1.0.0-alpha06 ktx
Same happening in
alpha-08
andalpha-09
.