c# - Xamarin Forms Android NoSupportedException while UWP works -


i updated solution latest nuget packages of xamarin.forms (2.3.4.267). receive exception while run program in android emulator (x86)

unhandled exception:  system.platformnotsupportedexception: operation not supported on platform. 

with piece of code:

public virtual void addrange(ienumerable<t> collection) {     if (collection == null) throw new argumentnullexception(nameof(collection));      foreach (var in collection) items.add(i);     oncollectionchanged(new notifycollectionchangedeventargs(notifycollectionchangedaction.reset)); } 

and in particular, line

foreach (var in collection) items.add(i); 

here github link test problem https://github.com/hugoterelle/posexclusive-droid-notsupported

this similar an issue i've encountered while working on xamarin android. issue has been fixed on release 15.3.2 of xamarin.

try updating xamarin version , try again


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -