2
public class DriverMapActivity extends FragmentActivity implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, com.google.android.gms.location.LocationListener {

    private GoogleMap mMap;
    GoogleApiClient mGoogleApiClient;
    Location mLastLocation;
    LocationRequest mLocationRequest;

I followed this tutorial, but all GoogleApiClients are crossed out and I don't understand why!

leonheess
  • 16,068
  • 14
  • 77
  • 112
NoobCoder08
  • 51
  • 1
  • 1
  • 4

1 Answers1

12

Use GoogleApi instead of GoogleApiClient: https://developers.google.com/android/reference/com/google/android/gms/common/api/GoogleApi.html

This guide walks you through how to transition from GoogleApiClient to GoogleApi: https://android-developers.googleblog.com/2017/11/moving-past-googleapiclient_21.html

ProgrammingFreak
  • 498
  • 3
  • 13