Skip to content

Android APK crashes on startup - TypeConverter cannot convert from System.Byte[] in Splash.InitializeComponent() #3620

@lucilu1320

Description

@lucilu1320

What I've accomplished:
✓ Successfully built MissionPlannerLib.sln for Android
✓ Generated APK/AAB from ExtLibs/Xamarin/Xamarin.Android/Xamarin.Android.csproj
✓ APK installs on device without issues
✓ All native libraries load correctly (libmonosgen, libgdal, libgstreamer_android)

The Problem:
App crashes immediately on startup with:

System.NotSupportedException: TypeConverter cannot convert from System.Byte[].
at MissionPlanner.Splash.InitializeComponent () [0x0025e]
at MissionPlanner.Splash..ctor ()
at MissionPlanner.Program.Start (System.String[] args)

This appears to be Windows Forms .resx resources (likely images/icons) failing to deserialize on Android.

Any guidance on the correct approach to building a working Android APK would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions