I have been making a project in react-native for about 4 months now using "react-native": "^0.57.4"
. It consists of a map-view which I am rendering/modifying/developing using "react-native-maps": "^0.22.1"
.
Suddenly I have this error now-
"App" is having trouble with google play services. Please try again.
The above error shows up where the map should be. The map component is grey and with the "App" is having trouble with google play services. Please try again.
message written on it.
I tried running it on an actual device and it runs perfectly fine. So that means its an emulator issue. Can anyone please share any insights or solution as to how to fix this on the emulator?
I am using Nexus 5P & 6P with android 9.0 *86.
You are either signed in with multiple accounts, and one of those is causing the error. Or, you recently changed the password to your Google account and need to relogin with the new credentials. The Play Store error is also caused due to data storage and cache issues on your Android device.
Clear Cache and Data All you need to do is a clear the cache for Play Services and Play Store. If the problem continues, then try clearing data for them as well.
Clear Cache and Data This fix will also be useful when troubleshooting other apps. Open Settings on your Android phone. Tap on “Apps” and “Google Play Services” under the “All apps” section. Select “Storage,” then press the “Clear cache” button followed by the “Clear data” or “Clear storage” button.
I was having the same problem today, the latest version of the com.google.android.gms.play-services-maps is the issue, downgrading to 16.0.0 fixed it.
Inside the app/build.gradle
dependencies {
...
compile "com.google.android.gms:play-services-base:+" <---Remove this
compile "com.google.android.gms:play-services-maps:+" <---Remove this
compile "com.google.android.gms:play-services-base:16.0.1" <---Add this
compile "com.google.android.gms:play-services-maps:16.0.0" <---Add this
}
hope it helps.
Sometimes the solution might be upgrading the google play services, if you are using "react-native": "^0.59.8"
and "react-native-maps": "^0.24.1"
.
Go to
Settings --> Android SDK --> SDK Tools(tab) --> Android SDK Build-Tools
and apply available updates. Refer this for further details on how to upgrade google play services.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With