title: LocationRequest and LocationServices.API are not resolved
body: <p>I have a high priority project under development.<br>
  I am trying to insert geo location into db so I found a service online and unfortunately <code>LocationRequest</code> and <code>LocationServices.API</code> are not resolved.<br>
  I am using the dependency <code>'com.google.android.gms:play-services-maps:10.2.0'</code></p>
  
  <p><a href="https://i.stack.imgur.com/LdoRl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LdoRl.png" alt="enter image description here"></a> </p>
  
  <p>I tried adding the imports</p>
  
  <pre><code>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;
  </code></pre>
  
  <p>You can find the code I used at this <a href="https://stackoverflow.com/questions/41023986/android-gps-location-tracking-even-when-app-is-closednot-running-in-backgroun">link</a></p>