.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,917 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a .net MAUI app published to Play Store, from the Microsoft Appcenter diagnostics I am seeing this exception resulting into crashes in production. I need help to understand why this could be happening and how to fix it.
It has only the following stack trace for all crashes, no other events. Would really appreciate some help to understand this issue.
System.InvalidOperationException: NavHost cannot be null
Microsoft.Maui.Platform.StackNavigationManager.get_NavHost()
Microsoft.Maui.Platform.NavigationViewFragment.OnResume()
AndroidX.Fragment.App.Fragment.n_OnResume(IntPtr , IntPtr )
Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V(_JniMarshal_PP_V , IntPtr , IntPtr )