[FIXED] Missing maui_colors.xml and maui_splash_image.xml

Issue

I’ve been developing a .NET MAUI app on my Windows 11 machine which works perfectly.

When I try to compile and run it on a Mac, running the latest version of Visual Studio for Mac – 17.3 Preview build 1038, I get two errors — see below:

Source file 'obj/Debug/net6.0-android/resizetizer/sp/maui_splash_image.xml' could not be found (XA2001)
Source file 'obj/Debug/net6.0-android/resizetizer/sp/maui_colors.xml' could not be found (XA2001)

enter image description here

Any idea what’s causing this and how to fix it?

P.S. I started this project from scratch on my PC so it’s not a conversion from Xamarin.

Solution

Cleaning and building the Solution (not the single project) fixed it for me.

enter image description here

Answered By – Monasha

Answer Checked By – Mary Flores (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published