A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hi @ByteDigger ,
Thanks for reaching out.
It seems the crash may be happening because the app’s native code isn’t being loaded properly in the version distributed via Google Play. The UnsatisfiedLinkError for MauiApplication.n_onCreate() generally indicates that the native library containing that method isn’t present in the packaged APK/AAB.
You could try the following steps to see if they help address the problem:
- Set Linker behavior to “Link SDK assemblies only” rather than “Link All” to reduce the chance of critical native code being trimmed.
https://learn.microsoft.com/en-us/dotnet/android/building-apps/build-properties
<PropertyGroup>
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
</PropertyGroup>
- Make sure your build includes the correct ABIs (
arm64-v8a,armeabi-v7a) under Android package settings. - Build a Release APK or AAB and install it directly on a device using
adb installto see if it launches properly before publishing.
If the issue continues, further investigation of the packaged AAB and native libraries may be needed to pinpoint the exact cause.
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.