react-native-maps: Error while updating property 'showUserLocation' of a view managed by: AIRMap
Summary
Reproducible sample code
my code works great. But when i made a build yesterday i got this error.
Steps to reproduce
just make build on android
Expected result
my location will show on map
Actual result
React Native Maps Version
1.3.1 and 0.29.3
What platforms are you seeing the problem on?
Android
React Native Version
0.63
What version of Expo are you using?
Not using Expo
Device(s)
all
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21
Downgrade the Google Play Services version, googlePlayServicesVersion = “+” as googlePlayServicesVersion = “17.0.0” on project level build.gradle file.
Any plans to update this to support play-services-location:21.0.0 -> and beyond??
With expo SDK 49 being released recently this issue has raised up again, shouldn’t react-native-maps be updated to work with
com.google.android.gms:play-services-locationv21+ ?I have opened a couple of issues before I found this one: https://github.com/expo/expo/issues/23396 https://github.com/react-native-maps/react-native-maps/issues/4788
Thanks It Worked
@Manish88879 Please locate the following code snippet in your Android project’s build.gradle file. If it’s not present, kindly add it.
ext { googlePlayServicesVersion = "17.0.0" firebaseVersion = "17.3.4" buildToolsVersion = "30.0.2" minSdkVersion = 21 compileSdkVersion = 31 targetSdkVersion = 31 ndkVersion = "21.4.7075529" }Check this one You will get smthing : https://github.com/react-native-maps/react-native-maps/issues/4842#issuecomment-1713357892
If you are experiencing this, make sure that you aren’t depending on
com.google.android.gms:play-services-location:21.0.0(or the+range which is discouraged) in your build.gradle.react-native-mapshaven’t been updated to support21.0.0yet and thus requires20.0.0.