1For anyone has the same issue, please refer to this link: facebook/react-native#25292 (comment). I solved my problem by adding this change in android/build.gradle:
2
3subprojects {
4 project.configurations.all {
5 resolutionStrategy.eachDependency { details ->
6 if (details.requested.group == 'com.google.android.gms'
7 && details.requested.name.contains('play-services-gcm')) {
8 details.useVersion '16.0.0'
9 }
10 }
11 }
12}