I am trying to use FusedLocationProviderClient.getCurrentLocation()
.
It's supposed to be available according to the documentation here.
But in Android Studio, I am getting the error
Cannot resolve method 'getCurrentLocation' in 'FusedLocationProviderClient'
I know the recommended approach is to implement requestLocationUpdates()
, but that's not what I am after here.