title: Xamarin App won't run without google play services
body: <p>I am new to Xamarin Android. I am trying to display a basic google map on my application. I have the API key etc set for google maps api. However when I run the emulator gives a message "App won't run without google play services".</p>
  
  <p>I have installed all the packages/ SDKs using android sdk manager, I am trying using API level 22 (Android 5.0 Lollipop).</p>
  
  <p>Below code is for initializing google maps (its downloaded from xamarin examples).</p>
  
  <p>Can anyone please tell me what I am missing here.</p>
  
  <pre><code>      using System;
        using Android.App;
        using Android.Content;
        using Android.Gms.Maps;
        using Android.Gms.Maps.Model;
        using Android.Runtime;
        using Android.Views;
        using Android.Widget;
        using Android.OS;
  
        namespace App2
        {
         [Activity(Label = "App2", MainLauncher = true, Icon = "@drawable/icon")]
        public class MainActivity : Activity, IOnMapReadyCallback
        {
          private GoogleMap _gMap;
          protected override void OnCreate(Bundle bundle)
          {
          base.OnCreate(bundle);
  
          // Set our view from the "main" layout resource
          SetContentView(Resource.Layout.Main);
          GetMap();
      }
  
      private void GetMap()
      {
  
          if (_gMap == null)
          {
              FragmentManager.FindFragmentById&lt;MapFragment&gt;(Resource.Id.map).GetMapAsync(this);
          }
      }
  
      public void OnMapReady(GoogleMap map)
      {
          _gMap = map;
      }
    }
  }
  </code></pre>
  
  <p><strong>Main.axml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"&gt;
  &lt;fragment
      android:id="@+id/map"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:name="com.google.android.gms.maps.MapFragment" /&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>Android Mainfest</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="App2.App2" android:versionCode="1" android:versionName="1.0" android:installLocation="auto"&gt;
  &lt;uses-sdk android:minSdkVersion="16" /&gt;
  &lt;application android:label="App2" android:icon="@drawable/Icon"&gt;
      &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyCKBrF-_IrAQlkUyFG7GT4qgEJ7qOgyNRI" /&gt;
  &lt;/application&gt;
  &lt;uses-feature android:glEsVersion="0x00020000" android:required="true" /&gt;
  &lt;!-- We need to be able to download map tiles and access Google Play Services--&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;!-- Allow the application to access Google web-based services. --&gt;
  &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
  &lt;!-- Google Maps for Android v2 will cache map tiles on external storage --&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;!-- Google Maps for Android v2 needs this permission so that it may check the connection state as it must download data --&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;!-- These are optional, but recommended. They will allow Maps to use the My Location provider. --&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  </code></pre>
  
  <p></p>
  
  <p><a href="https://i.stack.imgur.com/j0tTM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j0tTM.jpg" alt="Error"></a>
  <a href="https://i.stack.imgur.com/KTD2j.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KTD2j.jpg" alt="All SDKs Installed"></a></p>