dotnet/android

[MAUI 9.0 Preview 6] Android Maui app hangs up at splash screen when PublishTrimmed is true / release configuration

Closed this issue · 1 comments

Android framework version

net9.0-android

Affected platform version

Android 14 (hang up) and Android 13 (immediate crash)

Description

My app GnollHack (https://github.com/hyvanmielenpelit/GnollHack) hangs up in release configuration on Android 14 if PublishTrimmed is true. When PublishTrimmed is false (also with RunAOTCompilation being false), the app starts fine. I might note that trimming does not seem to currently work on iOS either. In both cases, something important seems to have been trimmed off.

On another, very old test device running on Android 13, the app crashes immediately, and Sentry breadcrumbs look as follows:

image

Steps to Reproduce

  1. Build GnollHackM with PublishTrimmed = true
  2. Start the app
  3. The app hangs up at splash screen

Did you find any workaround?

PublishTrimmed needs to be set to false.

Relevant log output

No response

This seems to be fixes now, too, in Preview 7.