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

[Bug]: Android crashes upon launch with error: Exception in HostObject::get for prop 'RNMBXLocationModule': com.mapbox.common.location.IncompatibleGooglePlayServicesLocationVersion: Incompatible Google Play Services location version found. Please check https://docs.mapbox.com/android/maps/guides/user-location/ for more details. #3266

Closed
manfredxu99 opened this issue Dec 13, 2023 · 4 comments
Labels
bug 🪲 Something isn't working reopen-on-code-fixed

Comments

@manfredxu99
Copy link

Mapbox Implementation

Mapbox

Mapbox Version

default

Platform

Android

@rnmapbox/maps version

10.0.15

Standalone component to reproduce

I haven't changed anything recently and started getting this error. Do I need to specify a particular version of play location services?

com.facebook.react.common.JavascriptException: Error: Exception in HostObject::get for prop 'RNMBXLocationModule': com.mapbox.common.location.IncompatibleGooglePlayServicesLocationVersion: Incompatible Google Play Services location version found. Please check https://docs.mapbox.com/android/maps/guides/user-location/ for more details. You can add <meta-data android:name="com.mapbox.maps.location.gms.SKIP_IF_INVALID_VERSION" android:value="true"/> to your AndroidManifest to skip it and use Android platform location APIs., js engine: hermes

Observed behavior and steps to reproduce

Open app, app crashes

Expected behavior

App does not crash

Notes / preliminary analysis

No response

Additional links and references

No response

@manfredxu99 manfredxu99 added the bug 🪲 Something isn't working label Dec 13, 2023
Copy link

No code example found in issue body - More info

@simvi
Copy link

simvi commented Dec 13, 2023

Same here

@mfazekas
Copy link
Contributor

1.) We've recently release 10.1 is that the version you're using now?
2.) What is your mapbox version?
3.) What is your react-native version, are you using expo or react-native
3.) Have you tried to adding the mentioned tag to Manifest

See also
mapbox/mapbox-maps-android#1752

@simvi
Copy link

simvi commented Dec 13, 2023

Well I just add <meta-data android:name="com.mapbox.maps.location.gms.SKIP_IF_INVALID_VERSION" android:value="true"/> and it works again.
But I don't understand why is that happened just today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working reopen-on-code-fixed
Projects
None yet
Development

No branches or pull requests

3 participants