xamarin / AndroidSupportComponents

Xamarin bindings for Android Support libraries - For AndroidX see https://github.com/xamarin/AndroidX
MIT License
146 stars 56 forks source link

I get an ANR after migrating from Xamarin.Android.Support.Constraint.Layout 1.1.0 to 2.0.1 #243

Open gonzobrains opened 3 years ago

gonzobrains commented 3 years ago

Xamarin.Android Version (eg: 6.0): 10.0

Operating System & Version (eg: Mac OSX 10.11): Windows 10

Support Libraries Version (eg: 23.3.0): 28.0.0.3

Describe your Issue:

I changed the API level of my project from 28 to 29 in order to comply with Play Store requirements. While doing so I updated the constraint layout NuGet package from 1.1.0 to 2.0.1. After this one of my screens started to hang. I got an ANR and the screen took several minutes to display whereas before it was only a few seconds.

While reviewing DDMS I saw that the main thread was never blocked, but it spent most of its time dealing with constraint-related processing. When I reverted to an older version it started working.

What were the major changes between 1.1.0 and 2.0.1? Is 2.0.1 not compatible with Android 10? Should I start making a move towards AndroidX?

Steps to Reproduce (with link to sample solution if possible):

Include any relevant Exception Stack traces, build logs, adb logs: