karhukoti
karhukoti

Reputation: 1

Xamarin, C#, Google Maps fragment with SupportMapFragment doesn't work with Min 10 Target 11

In post Xamarin, C#, Google Maps fragment not responding to any commands. (i.e MoveCamera), @Robbit, posts a github package which works just fine with the included Target 8.1 and current-at-that-time Nugut packages.

However, as I update the project with latest packages and target 11 and min 10, and rebuild, the code now gets an error:

SupportMapFragment mapFragment = (SupportMapFragment)SupportFragmentManager.FindFragmentById(Resource.Id.map);
mapFragment.GetMapAsync(this);

Severity Code Description Project File Line Suppression State Error CS0030 Cannot convert type 'Android.Support.V4.App.Fragment' to 'Android.Gms.Maps.SupportMapFragment' App46 GoogleMapXamarinTest-master\App46\MainActivity.cs 29 Active

Visual Studio showing the can't convert fragement pic

I do not understand why -- can someone please explain ?

Upvotes: 0

Views: 302

Answers (0)

Related Questions