📅  最后修改于: 2022-03-11 15:01:43.907000             🧑  作者: Mango
For 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:
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.google.android.gms'
&& details.requested.name.contains('play-services-gcm')) {
details.useVersion '16.0.0'
}
}
}
}