Sqlite package breaks maui app.
Im running a maui blazor hybrid project and added another repository project in the solution. In the repository project I have a package for system.data.sqlite. When I reference the repository project to maui i get an error when building saying "Error XAPRAS7009 System.InvalidOperationException: PE image does not have metadata." (full error message below). I have tried to google this but cant really wrap my head around what is wrong, Do I need to switch package or is there a fix?
Full error message
Severity Code Description Project File Line Suppression State
Error XAPRAS7009 System.InvalidOperationException: PE image does not have metadata.
at System.Reflection.PortableExecutable.PEReader.GetMetadataBlock()
at System.Reflection.Metadata.PEReaderExtensions.GetMetadataReader(PEReader peReader, MetadataReaderOptions options, MetadataStringDecoder utf8Decoder)
at Xamarin.Android.Tasks.ProcessAssemblies.DeduplicateAssemblies(List
1 output, Dictionary
2 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 MauiBlazor C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\32.0.476\targets\Microsoft.Android.Sdk.AssemblyResolution.targets 981 Reply
The package I was using was making the maui project break cause it does not support native. I had to switch to sqlite-net-pcl to make it work.