I am developing a high priority project.
I'm trying to insert the location of the geodata in the db, so I found the online service, and, unfortunately, LocationRequestand LocationServices.APInot allowed.
I am using addiction'com.google.android.gms:play-services-maps:10.2.0'

I tried to add import
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.GoogleApiClient.ConnectionCallbacks;
import com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener;
import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.location.LocationServices;
You can find the code I used in this link
source
share