I am experiencing issues when trying to use our signed Android MAUI application running after I install it from an APK onto emulator or physical device.
It installs without issue, but when launched it freezes and crashes. Since our application is fairly complex I decided to see if I could reproduce with a simple sample, and I was able to.
Configuration:
- Windows 11
- VS 2022
- Android emulator: Pixel_7_Pro _API_34 (Android 14.0 - API 34)
- Latest MAUI packages (8.0.21)
Steps:
- Create new MAUI application (XAML).
- Upgrade NuGet packages once solution is created to latest MAUI builds.
- Build project.
- Run against emulator and verify it works. It does.
- Go to emulator uninstall application that was created.
- Now go to bin\Debug\net8.0-android folder, and somehow get the Signed.apk file onto the emulator. I used Google Drive as my emulator which is hooked to one of my Google accounts.
- Run the APK to install the application onto the emulator. Installs without issue.
- Navigate to home screen and select application to launch.
- It shows splash screen and then crashes without any error message. I was able to get a bug report generated from the emulator and can see where it crashes...but not seeing anything obvious as to what is causing it to crash.
It seems similar to the issue reported here. https://github.com/dotnet/maui/issues/14378.