Hi
As soon as I attempt to include a map in my XAML with:
<maps:Map x:Name="MyMap" IsShowingUser="false" MapType="Street"/>
I get an exception: System.NullReferenceException. This is using latest Xamarin.forms and Forms.Maps as of 20th June. I have followed the instructions at: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/map I don't yet have an API key so I am expecting a grey box as detailed on this page, but not expecting a crash. The init code is called in my Xamarin.Android mainactivity.create thus:
Xamarin.Forms.Forms.Init(this, bundle);
Xamarin.FormsMaps.Init(this, bundle);
All the stated permissions have been obtained.
I have also placed the maps code in my code-behind with exactly the same result. Device Monitor shows me nothing of note, the error text would appear to show the device unable to locate the library required for google maps. Google maps runs just fine on the device.
Device is Samsung S7 with Android 7.1
Anyone got any idea's - none of the solutions to this issue elsewhere fixes my issue (these are mostly related to running on emulators - I am using a physical device).
06-20 13:35:20.341 W/System ( 6232): ClassLoader referenced unknown path:
06-20 13:35:20.431 W/System ( 6232): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000030/n/armeabi
06-20 13:35:20.486 I/Google Maps Android API( 6232): Google Play services client version: 10298000
06-20 13:35:20.498 I/Google Maps Android API( 6232): Google Play services package version: 12685025
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
Nigel