Errors after migrating from Xamarin.Android to MAUI (using VS Upgrade tool)

Andrew S Bissada 5 Reputation points
2024-01-15T16:36:35.8033333+00:00

I am doing a migration from Xamarin.Android to .NET MAUI. I used the upgrade tool. Afterwards, when I rebuild the project, I get these errors:   

> **Error  APT2259 **  'textEnd' is incompatible with attribute iconGravity (attr) flags [start=1, textStart=2]. mtrl_calendar_month_navigation.xml    33          

 

**Error  APT2061 ** failed linking file resources. Xamarin.Android.Aapt2.targets           156          
        

 (Location: C:\AndroidAppCore\res\layout\mtrl_calendar_month_navigation.xml)

(Location: C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.43\tools\Xamarin.Android.Aapt2.targets)

Please assist.    

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,870 questions
{count} votes