Error APT 2144 in Android.NET Upgrade

was 0 Reputation points
2025-07-31T17:55:44.6133333+00:00

I am upgrading a long-term Android.Xamarin project to an Android.NET project and trying to build the new .NET project in VS 2022. When building the app in Debug or Release mode I get the following error:

APT 2144 invalid file path 'E:\Android Project\S... Pro .NET...\obj\Debug\net9.0-android35.0\res\temp\main.xml'. C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.78\tools\Xamarin.Android.Aapt2.targets 123

The file (I actually have 3 xml files with this error) does exist in the relevant folder. I have tried to find the cause of the problem without success. I'm using the latest VS2022 Community version. Line 123 is: protected override void OnCreate(Bundle bundle) {...

Any pointers as to where I should look for the problem?

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. was 0 Reputation points
    2025-08-08T14:23:42.9733333+00:00

    Never mind. Problem solved.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.