Migrated AndroidX project build error with XF5

John H 31 Reputation points
2021-04-13T10:50:44.887+00:00

We have updated a solution that includes Android, iOS and UWP, to Android X using the migration tool.
This builds and appears to be working fine, and the app has passed regression testing.

We have now updated the solution to Xamarin Forms 5. We now have 1 specific project that fails to build, it is throwing the following error:
'textEnd' is incompatible with attribute iconGravity (attr) flags [start=1, textStart=2] [weak].

I wanted to try to create a new AndroidX project and copy the .cs files across, but I don't see a way of doing that in VS 2019?

Any pointers or suggestions are welcome!

Thanks
John

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-04-13T12:32:57.457+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    First, Please open your project, delete all of bin and obj folders. then rebuild your project, if it works.

    If not, please make sure you have install latest Xamarin.Forms nuget package 5.0.0.2012.

    Then Enable the feature:

    87350-image.png

    Then run it on the Android project

    87421-image.png

    And I find a known issue about this error, here are some solutions in this link, you can refer to it.

    https://github.com/xamarin/Xamarin.Forms/issues/13303

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    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.

    0 comments No comments

Your answer

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