This issue stems from google play services updating a few things in the latest version. https://developers.google.com/android/guides/releases#october_13_2022

I was able to solve this issue by locking my google play services version to 20.0.0 in the android/build.gradle file. We were previously using '+'. See image here for the change.

Answer from Christian Mitchell on Stack Overflow
🌐
GitHub
github.com › transistorsoft › flutter_background_geolocation › issues › 933
java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected · Issue #933 · transistorsoft/flutter_background_geolocation
January 27, 2023 - E/AndroidRuntime(12490): FATAL EXCEPTION: main E/AndroidRuntime(12490): Process: com.dashfuel.app, PID: 12490 E/AndroidRuntime(12490): java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~KPtYTQeobzWgbpitvR1gRA==/com.dashfuel.app-6WlMr0kIASZp6YLXPNnv2g==/base.apk) E/AndroidRuntime(12490): at com.transistorsoft.locationmanager.location.TSLocationManager.removeLocationUpdates(Unknown Source:41) E/AndroidRuntime
Author   transistorsoft
🌐
GitHub
github.com › Baseflow › flutter-geolocator › issues › 1383
[Bug]: Still seeing IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected ... error · Issue #1383 · Baseflow/flutter-geolocator
November 25, 2023 - Not expecting to see the error message when calling Geolocator.requestPermission() Here is actual message I got: E/LocationCollectionCli(15325): java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~tdlWvNh8l4H5BdS4m8PPgA==/com.parkhelper.park_helper-wPoA5C9veAoMAQ0rUDxKCQ==/base.apk) Code sample ·
Author   Baseflow
🌐
GitHub
github.com › transistorsoft › capacitor-background-geolocation › issues › 285
Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' · Issue #285 · transistorsoft/capacitor-background-geolocation
October 19, 2024 - FATAL EXCEPTION: pool-16-thread-2 (Ask Gemini) Process: com., PID: 3836 java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~s3Z8FSmIWKLEONz9sX6GGg==/com..in==/base.apk) at com.transistorsoft.xms.g.location.FusedLocationProviderClient.getLastLocation(Unknown Source:50) at com.transistorsoft.locationmanager.location.TSLocationManager.getLastLocation(Unknown Source:20) at com.transistorsoft.locationmanager.geof
Author   transistorsoft
🌐
Stack Overflow
stackoverflow.com › revisions › 75257107 › 2
My Flutter android app with location based ...
class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient') in react native
🌐
GitHub
github.com › transistorsoft › capacitor-background-geolocation › issues › 209
Error after launching app - Found interface com.google.android.gms.location.FusedLocationProviderClient · Issue #209 · transistorsoft/capacitor-background-geolocation
October 10, 2023 - E FATAL EXCEPTION: pool-8-thread-4 Process: io.hublock.truck.drive, PID: 11578 java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~PTCkVZQ2xYO1hddvO3mB2w==/io.hublock.truck.drive-Vg0R_0x-hXMVfmfNb8WFuA==/base.apk) at com.transistorsoft.locationmanager.location.SingleLocationRequest.startUpdatingLocation(Unknown Source:129) at com.transistorsoft.locationmanager.service.LocationRequestService.handleStartAction
Author   transistorsoft
🌐
B4X
b4x.com › home › forums › b4a - android › android questions
Android Question FusedLocationProvider Error
March 7, 2018 - ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** main_activity_resume (java line: 360) java.lang.IncompatibleClassChangeError: Found class com.google.android.gms.common.api.GoogleApiClient, but interface was expected (declaration of 'com.google.android.gms.common.api.GoogleApiClient' appears in /data/app/uk.co.martinpearman.b4a.fusedlocationproviderexample-1/base.apk) at uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper.Connect(FusedLocationProviderWrapper.java:147) at uk.co.martinpearman.b4a.fusedlocationproviderexample.main._activity_resume(m
🌐
GitHub
github.com › transistorsoft › flutter_background_fetch › issues › 342
[BUG] Crash when calling bgGeo.BackgroundGeolocation.stop(). java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' · Issue #342 · transistorsoft/flutter_background_fetch
September 5, 2023 - [BUG] Crash when calling bgGeo.BackgroundGeolocation.stop(). java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient'#342
Author   transistorsoft
🌐
Google
developers.google.com › google play services › fusedlocationproviderclient
FusedLocationProviderClient | Google Play services | Google for Developers
October 31, 2024 - public interface FusedLocationProviderClient implements HasApiKey<Api.ApiOptions.NoOptions> The main entry point for interacting with the Fused Location Provider (FLP). In order to obtain an instance of this class, see LocationServices.
Find elsewhere
🌐
GitHub
github.com › Baseflow › flutter-geolocator › issues › 1300
[Bug]: Conflict of "com.google.android.gms:play-services-location:20.0.0" and geolocator_android 4.2.1+ · Issue #1300 · Baseflow/flutter-geolocator
August 9, 2023 - W/System.err(10842): java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~Wy1lpeVgHLReg64X3N1P6g==/twentyfoureight.app-fc4G-YwBwMG_t1dU9_89CQ==/base.apk) W/System.err(10842): at com.mapbox.android.core.location.GoogleLocationEngineImpl.requestLocationUpdates(GoogleLocationEngineImpl.java:58) W/System.err(10842): at com.mapbox.android.core.location.GoogleLocationEngineImpl.requestLocationUpdates(GoogleLocation
Author   Baseflow
🌐
Google
developers.google.com › google play services › com.google.android.gms.location
com.google.android.gms.location | Google Play services | Google for Developers
October 31, 2024 - Key actions include requesting location updates with `FusedLocationProviderClient`, detecting activity transitions, and monitoring geographical regions (geofences). The API also manages device orientation, sleep patterns, and the current states of location-related settings. It uses builders to configure requests and provides callbacks to receive updates and events. The document includes deprecated interfaces that have been replaced by new API counterparts.\n"]]
🌐
GitHub
github.com › transistorsoft › react-native-background-geolocation › issues › 1563
All of a sudden, app started crashing on startup even though the codes of this plugin were never touched. · Issue #1563 · transistorsoft/react-native-background-geolocation
October 15, 2022 - Fatal Exception: java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~mDofj7Nsc77fSwgNVRxamA==/com.taknal.app.dev-L5fPGa6FVs_vlYzCh-W5Mg==/base.apk!classes3.dex) at com.transistorsoft.locationmanager.location.SingleLocationRequest.startUpdatingLocation(:123) at com.transistorsoft.locationmanager.service.LocationRequestService.handleStartAction(:74) at com.transistorsoft.locationmanager.service.LocationRequest
Author   transistorsoft
🌐
GitHub
github.com › Agontuk › react-native-geolocation-service › issues › 398
App crashes or could not invoke Geolocation.getCurrentPosition · Issue #398 · Agontuk/react-native-geolocation-service
January 30, 2023 - Caused by: java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~bD1cPSXr3jYigB864Ni0yw==/com.truecharger-IyI3jbMZVzNj2aO7gf6B4g==/base.apk!classes14.dex) at com.agontuk.RNFusedLocation.FusedLocationProvider.getCurrentLocation(FusedLocationProvider.java:97) at com.agontuk.RNFusedLocation.RNFusedLocationModule.getCurrentPosition(RNFusedLocationModule.java:112)
Author   Agontuk
🌐
GitHub
github.com › Baseflow › flutter-geolocator › issues › 1207
IncompatibleClassChangeError After upgrading from Flutter 3.3 to 3.7 · Issue #1207 · Baseflow/flutter-geolocator
January 31, 2023 - E/AndroidRuntime( 8044): FATAL EXCEPTION: main E/AndroidRuntime( 8044): Process: com.example.map, PID: 8044 E/AndroidRuntime( 8044): java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~SxuGh26HWKQ1rIvCYXX3qA==/com.example.map-0DBQ_0B_UFjIyX_goSaXhw==/base.apk) E/AndroidRuntime( 8044): at com.lyokone.location.FlutterLocation.createLocationCallback(FlutterLocation.java:219) E/AndroidRuntime( 8044): at com.lyok
Author   Baseflow
🌐
Velog
velog.io › @solradev › Flutter-error-com.google.android.gms.location.FusedLocationProviderClient
[Flutter / error] com.google.android.gms.location.FusedLocationProviderClient
java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient'
🌐
GitHub
github.com › expo › expo › issues › 24856
Location.getCurrentPositionAsync not working anymore on Android · Issue #24856 · expo/expo
October 13, 2023 - [FusedLocationProviderClient](https://developers.google.com/android/reference/com/google/android/gms/location/FusedLocationProviderClient), [ActivityRecognitionClient](https://developers.google.com/android/reference/com/google/android/gms/location/ActivityRecognitionClient), [GeofencingClient](https://developers.google.com/android/reference/com/google/android/gms/location/GeofencingClient) and [SettingsClient](https://developers.google.com/android/reference/com/google/android/gms/location/SettingsClient) are now interfaces instead of classes, which helps enforce correct usage and improves testability.
Author   expo
🌐
GitHub
github.com › rtchagas › pingplacepicker › issues › 96
FusedLocationProviderClient is interace since com.google.android.gms:play-services-location:21.0.0 · Issue #96 · rtchagas/pingplacepicker
FusedLocationProviderClient is interface since October 13, 2022 release. See https://developers.google.com/android/guides/releases#october_13_2022 · It causes that application crashes with IncompatibleClassChangeError · Fatal Exception: java.lang.IncompatibleClassChangeError: Found interface k5.a, but class was expected (declaration of 'k5.a' appears in base.apk) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.getDeviceLocation(PlacePickerActivity.kt:294) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.initMap(PlacePickerActivity.kt:481) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.access$initMap(PlacePickerActivity.kt:52) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$checkForPermission$1.onPermissionGranted(PlacePickerActivity.kt:272) ```
Author   rtchagas