skip to Main Content

React-native Android Platform building issue

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.appcompat:appcompat:1.4.1.

I have tried many solutions with Gradle, SDK and many other solutions from GitHub and StackOverflow.

2

Answers


  1. Chosen as BEST ANSWER

    Found The Solution. Just add this code in android/build.gradle

    allprojects {
       configurations.all {
           resolutionStrategy {
                force 'com.facebook.react:react-native:0.65.2' 
                //select Version you used
           }
       }
    }
    

  2. the issue is related to react native library.
    the complete details about the issue are here https://github.com/facebook/react-native/issues/35210

    also, you can check the answer with solutions in stackoverflow

    https://stackoverflow.com/a/74412023/12146710

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search