It asks me to update LocationRequest.Builder, but I change it and I still get an error enter image description here
I tried the LocationRequest.Builder method, but it keeps getting an error
val locationRequest= LocationRequest.create().apply{
interval =0
fastestInterval=0
priority = Priority.PRIORITY_HIGH_ACCURACY
smallestDisplacement = if ()
}
Which code would I replace it with, it's for andriod studio kotlin