Kishanjvaghela / react-native-cardview

Native CardView for react-native (All Android version and iOS)
https://www.npmjs.com/package/react-native-cardview
MIT License
510 stars 82 forks source link

A problem occurred configuring project ':react-native-cardview' #25

Closed tamajitchakraborty closed 6 years ago

tamajitchakraborty commented 6 years ago

A problem occurred configuring project ':react-native-cardview'. The SDK Build Tools revision (23.0.1) is too low for project ':react-native-cardview'. Minimum required is 25.0.0

i think you need to upgrade your android dependency.

Yousefjb commented 6 years ago

+1

Yousefjb commented 6 years ago

as workaround you can edit your build.gradle and add the following

subprojects {
   afterEvaluate {
     project -> if (project.hasProperty("android")) {
       android {
            compileSdkVersion 26
            buildToolsVersion "26.0.3"
       }
      }
    }
}

full build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven { url "$rootDir/../node_modules/react-native/android" }
        mavenLocal()
        jcenter()
        maven { url 'https://maven.google.com' }
        maven { url "https://jitpack.io" }
    }
}

subprojects {
   afterEvaluate {
     project -> if (project.hasProperty("android")) {
       android {
            compileSdkVersion 26
            buildToolsVersion "26.0.3"
       }
      }
    }
}

ext {
  compileSdkVersion = 26
  targetSdkVersion = 26
  buildToolsVersion = "26.0.2"
  supportLibVersion = "26.1.0"
  googlePlayServicesVersion = "11.8.0"
  oreoEXPERIMENTAL = "yes"
}
Kishanjvaghela commented 6 years ago

I have updated android version. please use v2.0.2