2

A problem occurred configuring project ':react-native-reanimated'.

com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

Android/build.gradle

 ext {
        buildToolsVersion = "30.0.2"
        minSdkVersion = 23
        compileSdkVersion = 30
        targetSdkVersion = 23
        ndkVersion = "21.4.7075529"
        // playServicesVersion = "18.0.1"
    }

Android/app/build.gradle

 defaultConfig {
        applicationId "com.ideabilisim.medlineapp"
        minSdkVersion rootProject.ext.minSdkVersion
        compileSdkVersion rootProject.ext.compileSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
    }

node_modules/react-native-reanimated/Android/build.gradle

android { 
    buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
    defaultConfig {
        minSdkVersion safeExtGet('minSdkVersion', 16)
        targetSdkVersion safeExtGet('targetSdkVersion', 28)
        compileSdkVersion safeExtGet('compileSdkVersion', 28)
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}
Alihaydar
  • 91
  • 3
  • 9

1 Answers1

1

try using this specific version in your packages.json

"react-native-reanimated": "2.2.4",