title: react-native-firebase_messaging:compileReleaseJavaWithJavac
body: <p>After @react-native-firebase updated their libraries I'm getting this error when running my react native project for android</p>
  <blockquote>
  <p>react-native-firebase_messaging:compileReleaseJavaWithJavac</p>
  </blockquote>
  <p>I googled and tried some changes I found on the internet but nothing worked.</p>
  <p>Can anyone help me with this?</p>
  <p>My dependencies:</p>
  <pre><code>    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'
  </code></pre>
  <p>My buildscript:</p>
  <pre><code>buildscript {
      ext {
          buildToolsVersion = &quot;29.0.2&quot;
          minSdkVersion = 23
          compileSdkVersion = 31
          targetSdkVersion = 31
          kotlinVersion = '1.5.0'
          ndkVersion = &quot;20.1.5948944&quot;
      }
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath(&quot;com.android.tools.build:gradle:4.1.0&quot;)
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion&quot;
          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
      }
  }
  </code></pre>