When I read the doc : https://developers.google.com/android/reference/com/google/android/gms/location/LocationRequest then say that PRIORITY_BALANCED_POWER_ACCURACY is deprecated and that we must use instead Priority.PRIORITY_BALANCED_POWER_ACCURACY. but when i do so i receive :
error: cannot find symbol
.setPriority(Priority.PRIORITY_BALANCED_POWER_ACCURACY)
What did I miss ?
Also
LocationRequest.setPriority()has become deprecated and been replaced byLocationRequest.Builder.setPriority()whereSo in your case you don't need to call
setPriority()at all.Further note, that
PRIORITY_BALANCED_POWER_ACCURACYhas been moved from classLocationRequestto interfacePriority.