Search code examples
c#androidxamarinxamarin.androidmaui

How to fix Error XAGJS7028 :Could not load assembly 'Xamarin.AndroidX.AppCompat.Resources in .NET MAUI?


I'm migrating my Xamarin forms code to .NET MAUI. After migration when I build my Android project I get the following error:

Error XAGJS7028 System.IO.FileNotFoundException: Could not load assembly 'Xamarin.AndroidX.AppCompat.Resources,  Perhaps it doesn't exist in the Mono for Android profile?

I have no clue how to fix this. Any suggestions?


Solution

  • I know that when we migrated both of our application from Xamarin to Maui we deliberately removed all package references and brought in each one at a time, so we knew we only brought in what we needed. After doing that we no longer have the AppCompat in either of our projects.