After @react-native-firebase updated their libraries I'm getting this error when running my react native project for android
react-native-firebase_messaging:compileReleaseJavaWithJavac
I googled and tried some changes I found on the internet but nothing worked.
Can anyone help me with this?
My dependencies:
implementation 'com.google.firebase:firebase-analytics'
implementation platform('com.google.firebase:firebase-bom:28.4.0')
implementation 'com.google.firebase:firebase-messaging'
implementation 'androidx.multidex:multidex:2.0.1'
My buildscript:
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 23
compileSdkVersion = 31
targetSdkVersion = 31
kotlinVersion = '1.5.0'
ndkVersion = "20.1.5948944"
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.0")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.google.gms:google-services:4.3.10'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}