I have my application written with NET9 MAUI. I use Visual Studio 2026. The application is working in debug. When I deploy in Release, the application crashes immediately. The error log is quite long, but I think this is the relevant part immediately at the beginning:
The program 'LanguageInUse.dll' has exited with code 0 (0x0). New vsdbg debugger process created for project 'C:\Projects\ERDevOps\LIUApp9\LanguageInUse\LanguageInUse.csproj'... Starting vsdbg debug session for project 'C:\Projects\ERDevOps\LIUApp9\LanguageInUse\LanguageInUse.csproj'...
am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.languageinuse.app/crc64ac7aba82500a106d.MainActivity" Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.languageinuse.app/crc64ac7aba82500a106d.MainActivity }
Android application is running (debug is disabled in android project properties). 11-15 23:44:38.848 W/zygote64( 3604): Activation of cgroup controller +memory failed in path /sys/fs/cgroup/apps/uid_10362: Invalid argument 11-15 23:44:38.855 I/Zygote ( 3604): Process 3604 crated for com.languageinuse.app 11-15 23:44:38.855 I/nguageinuse.app( 3604): Using CollectorTypeCMC GC. 11-15 23:44:38.858 E/nguageinuse.app( 3604): Not starting debugger since process cannot load the jdwp agent. 11-15 23:44:38.860 D/nativeloader( 3604): Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok 11-15 23:44:38.873 D/ApplicationLoaders( 3604): Returning zygote-cached class loader: /system/framework/org.apache.http.legacy.jar 11-15 23:44:38.873 D/ApplicationLoaders( 3604): Returning zygote-cached class loader: /system_ext/framework/androidx.window.extensions.jar 11-15 23:44:38.873 D/ApplicationLoaders( 3604): Returning zygote-cached class loader: /system_ext/framework/androidx.window.sidecar.jar 11-15 23:44:38.874 W/nguageinuse.app( 3604): Failed to find entry 'classes.dex': Entry not found 11-15 23:44:38.875 W/nguageinuse.app( 3604): Failed to find entry 'classes.dex': Entry not found 11-15 23:44:38.875 W/nguageinuse.app( 3604): Failed to find entry 'classes.dex': Entry not found
The MainActivity.cs is define like the following
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true,
LaunchMode = LaunchMode.SingleTop,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation |
ConfigChanges.UiMode | ConfigChanges.ScreenLayout |
ConfigChanges.SmallestScreenSize |
ConfigChanges.Density)]
[IntentFilter(new[] { Platform.Intent.ActionAppAction },
Categories = new[] { global::Android.Content.Intent.CategoryDefault })]
[IntentFilter(new[] { Intent.ActionView },
Categories = new[]
{
Intent.ActionView,
Intent.CategoryDefault,
Intent.CategoryBrowsable,
},
DataScheme = "liu", DataHost = "", DataPathPrefix = "/")]
public class MainActivity : MauiAppCompatActivity
{
// code
}
I have already deployed the application on the Google Play in its previous version, and it works.