When building against XF5 and after migrating a project you can get the following error:-
Severity Code Description Project File Line Suppression State
Error failed linking file resources. App1.Android
Error '5dp' is incompatible with attribute verticalOffset (attr) float [weak]. App1.Android
Error '10dp' is incompatible with attribute horizontalOffset (attr) float [weak]. App1.Android
It appears to be a conflict between
<PackageReferenceInclude="Xamarin.Google.Android.Material"Version="1.2.1.1" />
and Telerik assemblies.
If a dummy app is built with that Nuget it all works fine until the Nuget
<PackageReference Include="Telerik.UI.for.Xamarin" Version="2021.1.119.1" />
is added.
So you can have one or the other but not both.
Please see this GitHub thread where its discussed more and a sample app is posted.
(I am user Gmotagi in it)
https://github.com/xamarin/Xamarin.Forms/issues/13303