Hello,
This issue is reported in the GitHub, please see this thread: After update cannot build Android with error: Xamarin.Android.Common.targets ( System.InvalidOperationException: Duplicate attribute
And this issue will be fixed in .NET 6 release, but not yet in Xamarin.Android. If you still want to rebuild it, you can use these builds.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.