Я пытаюсь добавить response-native-firebase в свой собственный реагирующий проект, я выполнил все шаги, указанные в официальном документе для android https://rnfirebase.io/docs/v5.x.x/installation/android
но я все еще получаю ошибки, ниже методы отсутствуют:
notificationChannelGroup.getDescription() ,
notificationChannelGroup.setDescription(description)
notificationManager.getNotificationChannelGroup(channelGroupId)
Я уже пытался изменить свою версию SDK, версию инструментов сборки и целевую версию SDK, как указано в ссылке ниже:
https://github.com/invertase/react-native-firebase/issues/1759
ниже мои текущие версии проэкта и firebase:
"react-native": "^0.59.2",
"react-native-firebase": "^5.2.2",
android / build.gradle версии:
buildscript {
ext {
//buildToolsVersion = "27.0.3" //previous version
buildToolsVersion = "28.0.3" //modified
minSdkVersion = 16
//compileSdkVersion = 27 //previous version
compileSdkVersion = 28 //modified
// targetSdkVersion = 26 //previous
targetSdkVersion = 28 //modified
// supportLibVersion = "27.1.1" //previous
supportLibVersion = "28.0.0" // modfied
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
// classpath 'com.google.gms:google-services:3.0.0' //old version
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
зависимости android / app / build.gradle:
dependencies {
implementation project(':react-native-firebase')
// Firebase dependencies
implementation "com.google.android.gms:play-services-base:16.1.0"
implementation "com.google.firebase:firebase-core:16.0.8"
implementation 'com.google.firebase:firebase-messaging:17.5.0'
}
apply plugin: 'com.google.gms.google-services'
пожалуйста, дайте мне знать, если есть какие-то другие изменения, необходимые для реактивной базы firebase для Android.
Заранее спасибо.