adkandari / react-native-mock-location-detector

**Only For Android**. Detects if the device is using mock location app to spoof it's real location. In that case user will be prompted to fix the mock location settings first before using the app.
27 stars 24 forks source link

up play-services-location to 21.0.1 #18

Closed elintonev closed 9 months ago

elintonev commented 9 months ago

An error was occurring when building an app with react native on version 0.74.3 and node 18+, where it was necessary to update the google-play-service-location library for the error to stop happening.

elintonev commented 9 months ago

The error message is: unknown:ReactNative: Caused by: java.lang.IncompatibleClassChangeError: The method 'com.google.android.gms.tasks.Task com.google.android.gms.location.FusedLocationProviderClient.getLastLocation()' was expected to be of type virtual but instead was found to be of type interface (declaration of 'com.mocklocation.reactnative.RNMockLocationDetectorModule' appears in /data/app/com.app-OzNFINPtBudlXtug566ZAA==/base.apk:classes2.dex)

At the google documentation have a message explain whats happened: https://developers.google.com/android/guides/releases?hl=en#october_13_2022