title: Google Play Services Fused Location Provider stopped working in rev. 24
body: <p>Until now I have used Google Play Services, which version I cannot say bu as of may 2015 it was about 6 months old. I have used it in the following way in my application class.</p>
  
  <pre><code>@Override
  public void onCreate() {
      super.onCreate();
      if ( isGooglePlayServicesAvailable() ) {
          mGoogleApiClient = buildGoogleApiClient();
          mGoogleApiClient.connect();
      }
  }
  
  protected synchronized GoogleApiClient buildGoogleApiClient() {
      return new GoogleApiClient.Builder(this)
          .addConnectionCallbacks(this)
          .addOnConnectionFailedListener(this)
          .addApi(LocationServices.API)
          .build();
  }   
  </code></pre>
  
  <p>And I have accessed location like this</p>
  
  <pre><code>return LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);
  </code></pre>
  
  <p>This worked. Without GPS enabled on device it returned location accurate to less than 100 meters. Which was good enough for my purposes.</p>
  
  <p>A few days ago I have upgraded Google Play Services library to revision 24., the result is that<br>
  <code>LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient)</code> now consistently returns null, thus breaking my application.  </p>
  
  <p>How to fix this?<br>
  I would hate to force the user to turn on GPS, because GPS can take up to 10 minutes to get a fix. Besides, my app should work inside buildings so WiFi and cell tower based location is better. But this has stopped working.
  Do I revert to older version? Which was the last working version?<br>
  Is there some undocumented (as most of android) breaking change and  is there a workaround we have to pull out of thin air?  </p>