Skip to content

Android App Crashes Immediately on Start Up on Release or Debug not launched from the Debugger - unusable (GUID of dependent assembly Xamarin.AndroidX.AppCompat doesn't match #10530

@davidlederman

Description

@davidlederman

Android framework version

net9.0-android

Affected platform version

VS 2022 Version 17.14.16 Xamarin.Android SDK 13.2.2.0 (d17-5/45b0e14)

Description

I have an app that simply can only be run from the debugger. In release mode the app briefly shows the splash screen and immediately stops running. If you try Debug mode Debug->Start without Debugging, or tapping on the App Icon on the device it displays the same behavior.

I initially was getting the error being that Maui.Essentials GUID was wrong, after removing the dependency the issue moved to being 'Avalonia.Android.so' is unusable (GUID of dependent assembly Xamarin.AndroidX.AppCompat doesn't match (expected 'DFC8274A-39AB-468C-BFE7-7D7B58E91F7A', got '0542E451-C016-4FA2-B719-AD3ACDCC1B6D')).'

Steps to Reproduce

Run the app

Did you find any workaround?

No response

Relevant log output

10-06 08:48:10.140	TCL 9469X	Error	27390	DEBUG	Abort message: '* Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:3855, condition `is_ok (error)' not met, function:decode_patch, module 'Avalonia.Android.so' is unusable (GUID of dependent assembly Xamarin.AndroidX.AppCompat doesn't match (expected 'DFC8274A-39AB-468C-BFE7-7D7B58E91F7A', got '0542E451-C016-4FA2-B719-AD3ACDCC1B6D')).'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: App RuntimeIssues in `libmonodroid.so`.need-attentionA xamarin-android contributor needs to review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions