Error "navigation destination unknown to this NavController" in Android Navigation
Hi everyone! I've been struggling with an error for the second day while using Android Navigation Component. I have a simple app with two fragments: `HomeFragment` and `DetailsFragment`. When trying to navigate from Home to Details, I get this exception:
```
java.lang.IllegalArgumentException: navigation destination com.example.myapp:id/action_home_to_details is unknown to this NavController
```
Here's my navigation code in `HomeFragment`:
```kotlin
class HomeFragment : Fragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
binding.buttonGoToDetails.setOnClickListener {
findNavController().navigate(R.id.action_home_to_details)
}
}
}
```
And here's my