我正在尝试将 firebase 云消息传递连接到 android 应用程序。应用程序未加载错误 "Could not find com.google.firbase:firebase-core:17.0.1."

i am trying to connect firebase cloud messaging to android app. app is not loading the error "Could not find com.google.firbase:firebase-core:17.0.1."

dependencies {
implementation "com.google.android.gms:play-services-base:16.1.0"
implementation "com.google.firbase:firebase-core:17.0.1"
implementation "com.google.firebase:firebase-messaging:19.0.1"
// implementation platform('com.google.firebase:firebase-bom:29.2.0')
implementation fileTree(dir: "libs", include: ["*.jar"])
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"  // From node_modules

implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
    exclude group:'com.facebook.fbjni'
}

debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
    exclude group:'com.facebook.flipper'
    exclude group:'com.squareup.okhttp3', module:'okhttp'
}

debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
    exclude group:'com.facebook.flipper'
}

if (enableHermes) {
    def hermesPath = "../../node_modules/hermes-engine/android/";
    debugImplementation files(hermesPath + "hermes-debug.aar")
    releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
    implementation jscFlavor
}

}

想要连接 firebase 云消息传递,我收到错误找不到 com.google.firbase:firebase-core:17.0.1。当我 运行 android 应用

我想您忘记了 firbase 的字母 e。将“com.google.firbase:firebase-core:17.0.1”替换为“com.google.firebase:firebase-core:17.0.1”。

我相信 firebase-core 已在 React Native Firebase 中删除,请参阅文档中的 installation of Cloud Messaging,它不需要 firebase-corefirebase-messaging .