ArduPilot / ArduPilot/MissionPlanner
Android APK crashes on startup - TypeConverter cannot convert from System.Byte[] in Splash.InitializeComponent()
- Dominant language
- C#
- Stars
- 2.4k
- Forks
- 2.9k
- Avg merge
- 19h 16m
- Merged PRs (30d)
- 4
Description
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!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the MissionPlanner.Splash.InitializeComponent stack trace and inspect the Windows Forms .resx resources, especially images or icons, involved during startup. Compare those resources with the Android project at ExtLibs/Xamarin/Xamarin.Android/Xamarin.Android.csproj. Done means the generated APK installs and reaches startup without the TypeConverter exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100