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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -