Android application type
.NET Android (net7.0-android, etc.)
Affected platform version
.NET 8 Preview 2
Description
A customer's app won't get past the splash screen when built in Release mode:

But it appears to work if you set AndroidEnableMarshalMethods=false.
Steps to Reproduce
- I can share the sample with you privately in Teams
- Run the app in Release mode. It can be a fresh/clean build, so not an incremental build issue.
Did you find any workaround?
AndroidEnableMarshalMethods=false
Relevant log output
The log just kind of gets here... And stops?
03-15 23:25:52.948 14320 14320 D Mono : AOT: FOUND method Microsoft.Maui.WeakList`1/<>c:<CleanupIfNeeded>b__12_0 (System.WeakReference`1<T>) [0x7b4e6fcfd530 - 0x7b4e6fcfd5f7 0x7b4e6fd39ba3]
log.txt
Android application type
.NET Android (net7.0-android, etc.)
Affected platform version
.NET 8 Preview 2
Description
A customer's app won't get past the splash screen when built in Release mode:
But it appears to work if you set
AndroidEnableMarshalMethods=false.Steps to Reproduce
Did you find any workaround?
AndroidEnableMarshalMethods=falseRelevant log output
The log just kind of gets here... And stops?
log.txt