Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

AmbiguousMatchException on Android

$
0
0

Lately we'ven been having issues with app crashes when loading a specific view. The crash only seems to appear on Android and often doesn't reoccur when the view is loaded a second time. I've been able reproduce it and found that it was throwing an AmbiguousMatchException, this is the stack trace:

01-11 21:52:54.539 I/MonoDroid( 3930): UNHANDLED EXCEPTION:
01-11 21:52:54.564 I/MonoDroid( 3930): System.Reflection.AmbiguousMatchException: Ambiguous match found.
01-11 21:52:54.564 I/MonoDroid( 3930): at System.RuntimeType.GetPropertyImpl (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00057] in /Users/builder/jenkins/workspace/xamarin-android/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/rttype.cs:3307
01-11 21:52:54.564 I/MonoDroid( 3930): at System.Type.GetProperty (System.String name) [0x0000e] in /Users/builder/jenkins/workspace/xamarin-android/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/type.cs:728

It happens in the InitializeComponent of the ContentPage. I don't know why it happens so randomly, does anyone have an idea how to avoid this error or find the cause?

Thanks in advance


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>