Can't find the class com.google.android.gms.location.LocationClient (android)

Jerry Sun picture Jerry Sun · May 19, 2013 · Viewed 55.4k times · Source

I have download a demo project from http://developer.android.com/training/location/retrieve-current.html, and I think I don't lost any steps; But I can't find which jar file contain the “com.google.android.gms.location.LocationClient.class” file

We found all "google-play-services.jar" and "maps.jar", and "android.jar (All versions)" don't contain the "LocationClient.class"?

Answer

Atetc picture Atetc · May 22, 2015

Add to Gradle file (x.y.z - actual version of Google Play Services):

compile 'com.google.android.gms:play-services-location:x.y.z'