fusedlocationproviderclient.getLastLocation() returns an old location android code example
Example: fused location provider client implementation
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'