I've newly shifted over to developing MAUI Apps and right off the bat, when I create the default MAUI Project and try to execute it on an Android Emulator, I get the following Error:
Severity Code Description Project Path File Line Suppression State Error XAPRAS7000 System.BadImageFormatException: Invalid number of sections in declared in PE header. at System.Reflection.PortableExecutable.PEHeaders.ReadSectionHeaders(PEBinaryReader& reader) at System.Reflection.PortableExecutable.PEHeaders..ctor(Stream peStream, Int32 size, Boolean isLoadedImage) at System.Reflection.PortableExecutable.PEReader.InitializePEHeaders()
at System.Reflection.PortableExecutable.PEReader.GetMetadataBlock()
at System.Reflection.Metadata.PEReaderExtensions.GetMetadataReader(PEReader peReader, MetadataReaderOptions options, MetadataStringDecoder utf8Decoder) at Xamarin.Android.Tasks.ProcessAssemblies.DeduplicateAssemblies(List1 output, Dictionary2 symbols) at Xamarin.Android.Tasks.ProcessAssemblies.RunTask() at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17 ToDoMaui C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\32.0.448\targets C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\32.0.448\targets\Microsoft.Android.Sdk.AssemblyResolution.targets 98
However, when I run it as a windows app or on an actual Android device, it works fine. My assumption is that something is messed up with the Android SDK (despite me having it reinstalled).