I had the same issue. When I ran a Clean and Rebuild it resolved it for me. Have you given that a try?
So 17.4 takes VS to a new low. So many problems even old projects don't work any more
So I updated to 17.4 hoping that this would help.
So I created a new Maui project and the errors far exceeded the 17.3 screwup. So new projects are farther from being created than before.
Then I open a old working project. It gets
Severity Code Description Project File Line Suppression State
Error APT2144 invalid file path 'C:\Visual Stuido Stuff\Maui\NHLMauiApp\obj\Debug\net6.0-android\resizetizer\sp\maui_colors.xml'. NHLMauiApp C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\32.0.476\tools\Xamarin.Android.Aapt2.targets 123
Severity Code Description Project File Line Suppression State
Error APT2144 invalid file path 'C:\Visual Stuido Stuff\Maui\NHLMauiApp\obj\Debug\net6.0-android\resizetizer\sp\maui_splash_image.xml'. NHLMauiApp C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\32.0.476\tools\Xamarin.Android.Aapt2.targets 123
Now I have a non usable VS and with every attempt to fix it , it gets worse.
THIS IS PATHETIC. In over 30 years of dev on MS platforms this is so far the worst that if anyone looked at the way it screws up no one would use it.
I really need to talk with someone. RIGHT NOW!!!!!