Skip to content

Update play-services-location to 21 make the lib crash #24

@hugomc92

Description

@hugomc92

If you update

implementation 'com.google.android.gms:play-services-location:20.0.0'

to

implementation 'com.google.android.gms:play-services-location:21.0.0'

The lib crash on checkLocationSetting(), specifically:

SettingsClient client = LocationServices.getSettingsClient(context);
Task<LocationSettingsResponse> task = client.checkLocationSettings(builder.build());

when executing client.checkLocationSettings this exception occurs:

Found interface com.google.android.gms.location.SettingsClient, but class was expected (declaration of 'com.google.android.gms.location.SettingsClient'

With version 20 it works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions