Hi
I have opened the How Do I example with VS 2017 and run it on a Samsung S6 (have not tested on other devices). The app deploys successfully but when I try to open the item “Overlays and layers -> User OpenStreetMap Overlay” the app crashes and I get the error from VS “Object reference not set to an instance of an object”. I looked to the output windows and see this error:
( 8209): — SkAndroidCodec::NewFromStream returned null
System.NullReferenceException: Object reference not set to an instance of an object.
The code in the example is relatively simple
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.DisplayMapView);
OpenStreetMapOverlay osmOvelerlay = new OpenStreetMapOverlay();
androidMap = FindViewById<MapView>(Resource.Id.androidmap);
androidMap.MapUnit = GeographyUnit.Meter;
androidMap.ZoomLevelSet = new SphericalMercatorZoomLevelSet();
androidMap.CurrentExtent = osmOvelerlay.GetBoundingBox();
androidMap.Overlays.Add(osmOvelerlay);
SampleViewHelper.InitializeInstruction(this, FindViewById<RelativeLayout>(Resource.Id.MainLayout), GetType());
}