androidandroid-locationandroid-fusedlocation

Create LocationRequest for API lower than 31


I have compileSdkVersion 32 and now I can create LocationRequest only using LocationRequest.Builder. LocationRequest.create() currently unavailable, means I can't even call this deprecated static method. So any suggestions how to create LocationRequest for API lower than 31? Thanks.


Solution

  • Solved with using com.google.android.gms.location.LocationRequest