CleverTap/clevertap-react-native

minCompileSdk (33) specified in a dependency's AAR metadata Issue

Closed this issue · 2 comments

Upgraded from "clevertap-react-native": "^0.9.1", to "clevertap-react-native": "^1.0.2", iOS works fine only in android it breaks.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > The minCompileSdk (33) specified in a
     dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
     is greater than this module's compileSdkVersion (android-31).
     Dependency: androidx.appcompat:appcompat-resources:1.6.0-rc01.
     AAR metadata file: /Users/myapp/.gradle/caches/transforms-3/58d45c5b61dfcb7b4454f8217ca7abd3/transformed/jetified-appcompat-resources-1.6.0-rc01/META-INF/com/android/build/gradle/aar-metadata.properties.

     Build Settings
        buildToolsVersion = "30.0.2"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31

"react-native": "^0.67.4",
"clevertap-react-native": "^1.0.2",

@Md-Mudassir47 clevertap-react-native: 1.0.0 onwards we support Android API 33. You need to update your compileSDK to 33.

Thanks, upgrading it to 33 fixed the issue.. @piyush-kukadiya