Closed EDMIStephen closed 4 years ago
This is probably due to the linker removing your splash page. Please review this documentation: https://docs.microsoft.com/en-us/xamarin/android/deploy-test/linker Thanks!
@samhouts It could be a general problem that Xamarin.Forms somehow asks for this specific constructor.
I created a Repro here: https://github.com/acuntex/PancakeViewBug_TitleView
Workaround is documented here: https://github.com/sthewissen/Xamarin.Forms.PancakeView/issues/113
And the workaround is also dangerous because the DependencyResolver of Xamarin.Forms (https://github.com/xamarin/Xamarin.Forms/blob/719fc7a604ff0cce8922d717c99bfb0fa17e35e0/Xamarin.Forms.Core/DependencyResolver.cs) has a pretty dirty workaround in line 50, which checks if the constructor has two parameters (without any type checking) and then fails because it does not match. (Just a little appeal to stop fixing bugs with workarounds that require further workarounds that require further workarounds that..)
I urge you to not dismiss this problem as some "linker issue" because it is not.
@samhouts It could be a general problem that Xamarin.Forms somehow asks for this specific constructor.
I created a Repro here: https://github.com/acuntex/PancakeViewBug_TitleView
Workaround is documented here: sthewissen/Xamarin.Forms.PancakeView#113
And the workaround is also dangerous because the DependencyResolver of Xamarin.Forms (https://github.com/xamarin/Xamarin.Forms/blob/719fc7a604ff0cce8922d717c99bfb0fa17e35e0/Xamarin.Forms.Core/DependencyResolver.cs) has a pretty dirty workaround in line 50, which checks if the constructor has two parameters (without any type checking) and then fails because it does not match. (Just a little appeal to stop fixing bugs with workarounds that require further workarounds that require further workarounds that..)
I urge you to not dismiss this problem as some "linker issue" because it is not.
For us I think in the end it was a Xamarin Android bug related to hybrid AOT. https://github.com/xamarin/xamarin-android/pull/4850
We manually made the change to src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets from that PR and it seemed to resolve the issue. We also needed to support armv7a & arm64-v8a due to this bug: https://github.com/xamarin/xamarin-android/issues/1218
Description
System.NotSupportedException. Seems similar to https://github.com/xamarin/Xamarin.Forms/issues/6550#issuecomment-625702458
Steps to Reproduce
Expected Behavior
App doesn't crash
Actual Behavior
App crashes on Startup
Basic Information
Droid
Reproduction Link
Will try get one going but can you please start investigating on stack trace.
Workaround
None as of yet