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.
Я думаю, что вы забыли букву e
вместо firbase
. Замените «com.google.firbase:firebase-core:17.0.1» на «com.google.firebase:firebase-core:17.0.1».
Я считаю, что firebase-core
был удален в React Native Firebase, см. установка облачных мессенджеров в документации, ему не нужны firebase-core
и firebase-messaging
.