Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Play Services 21 IncompatibleClassChangeError FusedLocationProviderClient #1409

Closed
wants to merge 1 commit into from

Conversation

AAverin
Copy link
Contributor

@AAverin AAverin commented Feb 18, 2024

Reasoning

Google have introduced some breaking changes in Google Play Services 21.0.1 turning some classes into interfaces.
This results in exceptions in production, especially if other location libraries like flutter location are used:

java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient'

Unfortunately because mapbox-core-andorid is no longer supported, it won't be migrated to 21+ implementation.

The best we can do is to pin play services to 20.0.0 in the library. This fixes exceptions in production builds, at least for example app.

Likely some changes in the project that uses this library will have to be made to make things work.

What changed

Force google play-services-location to 20.0.0 as this is the latest mapbox-core-android can support due to mapbox/mapbox-events-android#577

@AAverin AAverin had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN February 18, 2024 07:14 — with GitHub Actions Failure
@AAverin AAverin had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN February 18, 2024 07:14 — with GitHub Actions Failure
Copy link

stale bot commented Apr 20, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 20, 2024
@stale stale bot closed this Apr 27, 2024
@AAverin AAverin reopened this Jun 26, 2024
@AAverin AAverin had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN June 26, 2024 06:59 — with GitHub Actions Failure
@AAverin AAverin had a problem deploying to ANDROID_CI_DOWNLOADS_TOKEN June 26, 2024 06:59 — with GitHub Actions Failure
@stale stale bot removed the stale label Jun 26, 2024
Copy link

stale bot commented Aug 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 26, 2024
@stale stale bot closed this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant