title: How to update Google Play Services for Android Studio 2.2 emulators?
body: <p>There are a number of variations of this question, however most are very old, and don't really answer the question at all.  I'm NOT asking how to install Play Services, that is installed in the Studio 2.2 emulators. </p>
  
  <p>The problem is that these emulators are using an old version of Play services.</p>
  
  <p>When I run a test app that uses Firebase to facilitate Google login I get this alert dialog from a Nexus 5 API 23 emulator:</p>
  
  <p><a href="https://i.stack.imgur.com/3W2aG.png"><img src="https://i.stack.imgur.com/3W2aG.png" alt="enter image description here"></a></p>
  
  <p>In the onCreate method of my login activity I have this code:</p>
  
  <pre><code>int result = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
  
      switch(result) {
          case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED:
              Log.d(TAG,"SERVICE_VERSION_UPDATE_REQUIRED");
              break;
          case ConnectionResult.SUCCESS:
              Log.d(TAG, "Play service available success");
              break;
          default:
              Log.d(TAG, "unknown services result: " + result);
  
      }
  </code></pre>
  
  <p>This always returns SERVICE_VERSION_UPDATE_REQUIRED.</p>
  
  <p>Clicking update in the alert dialog does nothing that I can detected.  In the debug log I get this message when Play Services startup fails:</p>
  
  <pre><code>W/GooglePlayServicesUtil: Google Play services out of date.  Requires 9080000 but found 8489470
  </code></pre>
  
  <p>My application runs fine on a real Android device.</p>
  
  <p>What simple thing am I missing?</p>
  
  <p>TIA</p>