Skip to content

Commit f5353a4

Browse files
areeb111christopherdro
authored andcommitted
Adding notes for Google Play Services (react-native-maps#2631)
Important note for Google Play Services when conflicting with other modules
1 parent 4b7d01f commit f5353a4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/installation.md

+21
Original file line numberDiff line numberDiff line change
@@ -412,3 +412,24 @@ import com.airbnb.android.react.maps.MapsPackage;
412412
are not supported by your device.`, you need to change the emulator
413413
CPU/ABI setting to a system image that includes Google APIs. These may
414414
need to be downloaded from the Android SDK Manager first.
415+
416+
417+
### Google Play Services conflicting issues with other modules
418+
419+
In case you have multiple modules using Google Play Services such as `react-native-onesignal`, Make sure to exclude all the Google Play Services dependencies from the modules and import all the Google Play Services dependencies for all the modules in the project-wide `build.gradle` file like the following example:
420+
```
421+
implementation(project(':react-native-onesignal')){
422+
exclude group: 'com.google.android.gms'
423+
}
424+
425+
implementation(project(':react-native-maps')){
426+
exclude group: 'com.google.android.gms'
427+
}
428+
implementation 'com.google.android.gms:play-services-base:12.0.1'
429+
implementation 'com.google.android.gms:play-services-basement:12.0.1'
430+
implementation 'com.google.android.gms:play-services-location:12.0.1'
431+
implementation 'com.google.android.gms:play-services-tasks:12.0.1'
432+
implementation 'com.google.android.gms:play-services-maps:12.0.1'
433+
434+
435+
```

0 commit comments

Comments
 (0)