APT2144 invalid file path error in file Xamarin.Android.Aapt2.targets. Error message gives a file path, which I can find using File Explorer. Help on error message says it can't be found

Papai Das 5 Reputation points
2023-03-22T07:39:37.3233333+00:00

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\33.0.26\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144: invalid file path 'D:\PAPAI\MyProject\SurfMobile_V3\SurfMobile_V3\obj\Debug\net7.0-android\res\resources\styles\styles.xaml'.

1>C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\33.0.26\tools\Xamarin.Android.Aapt2.targets(123,3): error APT2144: invalid file path 'D:\PAPAI\MyProject\SurfMobile_V3\SurfMobile_V3\obj\Debug\net7.0-android\res\resources\styles\colors.xaml'.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,747 questions
{count} vote