Fused Location Provider class not found despite Google Play Services dependency in gradle file

Viewed 3839

My app uses the FusedLocationProviderApi for getting the current location. I've already put the line which allows the app to use Google Play Services in the gradle file for my app module:

compile 'com.google.android.gms:play-services-ads:11.0.2'

But when I try to declare a FusedLocationProvider variable, it turns red and does not recognize the class. My only guess is that I should probably import the class, but I don't know exactly how.

1 Answers
Related