question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[NavigationBasicSample] crash

See original GitHub issue

TitleScreen —> 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:closed
  • Created 5 years ago
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
gilgoldzweigcommented, Oct 16, 2018

bug returns on 1.0.0-alpha06 ktx

java.lang.IllegalArgumentException: navigation destination com.nyx.tech.dev:id/action_home_fragment_to_calibration_fragment is unknown to this NavController
        at androidx.navigation.NavController.navigate(NavController.java:691)
        at androidx.navigation.NavController.navigate(NavController.java:648)
        at androidx.navigation.NavController.navigate(NavController.java:634)
        at androidx.navigation.NavController.navigate(NavController.java:712)
        at com.nyx.tech.fragments.home.HomeFragment.onFeatureInitiated(HomeFragment.kt:240)
        at com.nyx.tech.fragments.home.HomeFragmentPresenter$observe$1.onChanged(HomeFragmentPresenter.kt:177)
        at com.nyx.tech.fragments.home.HomeFragmentPresenter$observe$1.onChanged(HomeFragmentPresenter.kt:50)
        at android.arch.lifecycle.LiveData.considerNotify(LiveData.java:109)
        at android.arch.lifecycle.LiveData.dispatchingValue(LiveData.java:126)
        at android.arch.lifecycle.LiveData.setValue(LiveData.java:282)
        at android.arch.lifecycle.MutableLiveData.setValue(MutableLiveData.java:33)
        at android.arch.lifecycle.LiveData$1.run(LiveData.java:87)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5417)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-14 15:23:52.527 23366-23427/com.nyx.tech.dev W/NYXApplication$onCreate: com
4reactions
lcszccommented, Dec 28, 2018

Same happening in alpha-08 and alpha-09.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pass data between destinations - Android Developers
Navigation allows you to attach data to a navigation operation by defining arguments for a destination. For example, a user profile ...
Read more >
Using FragmentContainerView with Navigation component?
The NavigationBasicSample has been updated to 2.2.0-alpha01 but is still using the fragment tag. The NavigationAdvancedSample shows the use ...
Read more >
Breeze deep links with Android Architecture Components ...
Avoid Crash on pre-lollipop devices — Without directly go for the solution first we need to clear the concept of what is vector...
Read more >
Exception Inflating Navigation Graph - ADocLib
I'm experiencing this crash when using proguard after integrating the NavigationComponent ... Android Architecture Components Navigation Basic Sample.
Read more >
Crash Map Tutorial 3 - Crash Cluster Queries - YouTube
This tutorial explains how to get the most out of the powerful macro level crash cluster query tool and how it can be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found