title: Task :app:checkReleaseAarMetadata FAILED react-native
body: <p>I am making a release build for my project using <code>./gradlew assembleRelease</code> command but it gives me this error.</p>
  <pre><code>&gt; Task :app:checkReleaseAarMetadata FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:checkReleaseAarMetadata'.
  &gt; A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
     &gt; The minCompileSdk (31) specified in a
       dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
       is greater than this module's compileSdkVersion (android-30).
       Dependency: androidx.core:core:1.7.0-alpha02.
       AAR metadata file: /Users/classic/.gradle/caches/transforms-2/files-2.1/64ba04558e5775ef86bc1e2e88b04a01/core-1.7.0-alpha02/META-INF/com/android/build/gradle/aar-metadata.properties.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  </code></pre>
  <p>I cannot edit my <code>build.gradle</code> for fixing this error as project has some dependencies that break after changing <code>compileSdkVersion</code>.</p>
  <p><strong>Edit</strong>
  <br>
  I added the following line to my <code>android/app/build.gradle</code> but that didn't worked for me.</p>
  <pre><code>implementation &quot;androidx.core:core-ktx:1.6.0&quot;
  </code></pre>
  <p>Related issue -&gt; <a href="https://stackoverflow.com/questions/68207334/getting-error-while-running-react-native-run-android?answertab=votes#tab-top">here</a></p>