我正在尝试添加react-native firebase插件。 https://github.com/invertase/react-native-firebase 不幸的是我陷入了这个问题。任何帮助将不胜感激
答案 0 :(得分:0)
在Android Studio上更新您的app / build.gradle
com.google.android.gms:播放服务-GCM
dependencies {
compile(project(':react-native-firebase')) {
transitive = false
}
...
// From node_modules
compile project(':react-native-push-notification')
>>> compile ('com.google.android.gms:play-services-gcm:11.6.0') {
force = true;
}
// Firebase dependencies
compile "com.google.android.gms:play-services-base:11.6.0"
compile "com.google.firebase:firebase-core:11.6.0"
compile "com.google.firebase:firebase-analytics:11.6.0"
}