react-native-maps: Error while updating property 'showUserLocation' of a view managed by: AIRMap

Summary

image

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

image

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

Most upvoted comments

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-location v21+ ?

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

I can’t find this googlePlayServicesVersion

@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" }

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-maps haven’t been updated to support 21.0.0 yet and thus requires 20.0.0.