-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
AppShell crashed on Android with "No view found for id 0x1 (unknown) for fragment ShellItemRenderer..." #7940
Comments
See also discussion here #7878 (comment) |
I'm using vs main build 32611.49. I can't repro but we did run into similar error before. |
What device/emulator have you used to reproduce the issue? I made some more tests today. Physical devices Emulators |
Currently that's a real show stopper for my customers. The app crashes often and randomly. |
...
Emulator: Physical Phone: |
The following is my vs info: Is is just a tooling issue? Where to download the vs main build 32611.49? |
I updated my Visual Studio to version 17.3.0 preview 2.0. However, the problem is still. The app crashed with the same error when it came back from background and then navigated to another page. I like the Shell routing but I agree with Martin Rothschink: this is a show stopper. The error: java.lang.IllegalArgumentException: No view found for id 0x1 (unknown) for fragment ShellItemRenderer My Visual Studio: |
What's with Windows Subsystem for Android™️? Literally every bug that I am experiencing on a physical device cannot be seen on WSA? Huh? This is one of the new issue that I am encountering, that I had never encountered on WSA. So, anyone testing their app with WSA as their main thing, be sure to try their app on other devices time to time. I think this bug has some association with the behavior of |
this seems to be happening when activity dies, easiest way to replicate is to enable "Don't keep activities" option in the Developer options in settings, then just switching to another app and back would trigger killing activities of the app, which will surface the bug |
I can confirm that this bug also accures on my project. |
When the fix will be available? Visual Studio 17.3.0 Preview 3.0 just released and the problem is still there. |
I just confirmed with the newly release vs17.3.0 preview 4.0, the problem is finally fixed. |
Description
I'm working on an android app using MAUI GA and encounter an annoying error of "java.lang.IllegalArgumentException: No view found for id 0x1 (unknown) for fragment ShellItemRenderer..." w/o a fix. I have spent a couple of days debugging and searching but no solution found. To a point that I have to believe this must be a MAUI AppShell bug. I have created a repository on github of the simple MAUI project in case anyone wants to check.
https://github.com/jzhao8402/MauiApp1
The project is actual a barebone AppShell project with only two flyout items for a Login Page and a About Page. But it's good enough to reproduce the problem. I'm able to re-produce the bug on both the android emulator and physical devices. Not sure if I missed any critical thing to make this simple shell working properly. Any help or hint would be appreciated. I'm frustrated because I need to build my faith to go with .Net MAUI. On top of this one, I'm also struggling with the Google Firebase push notification, android alert sound. None of these is out of box of MAUI.
Steps to Reproduce
Java.Lang.IllegalArgumentException: 'No view found for id 0x1 (unknown) for fragment ShellItemRenderer
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 21 & up
Did you find any workaround?
Not yet.
Relevant log output
The text was updated successfully, but these errors were encountered: