Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SDK Build Tools revision (23.0.1) is too low for project ':react-native-vector-icons'. Minimum required is 25.0.0 #484

Closed
facuescobar opened this issue Jun 2, 2017 · 3 comments

Comments

@facuescobar
Copy link

I am getting this error because of buildToolsVersion in this line:
https://github.com/oblador/react-native-vector-icons/blob/master/android/build.gradle#L15

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':react-native-vector-icons'.
      > The SDK Build Tools revision (23.0.1) is too low for project ':react-native-vector-icons'. Minimum required is 25.0.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.998 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

Versions:

"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-vector-icons": "^4.1.1",

after upgrading buildToolsVersion to:

buildToolsVersion '25.0.0'

The error was fixed.

Should you guys update this in your repo?
This file is in node_modules, and everyone who npm install will get this error.

This is how my file looks now:

buildscript {
  repositories {
    jcenter()
  }

  dependencies {
    classpath 'com.android.tools.build:gradle:1.1.3'
  }
}

apply plugin: 'com.android.library'

android {
  compileSdkVersion 23
  buildToolsVersion "25.0.0"

  defaultConfig {
    minSdkVersion 16
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
  }
  lintOptions {
    abortOnError false
  }
}

repositories {
  mavenCentral()
}

dependencies {
  compile "com.facebook.react:react-native:+"
}

Ps: if it helps, I've reported the same issue here doefler/react-native-social-share#40

@facuescobar
Copy link
Author

Hi!

seems that this version issues were caused because something Android Studio did the first time I tried to build Android app.

I re builded the project from scratch in a different branch, without using Android Studio, and the build was successful.

If someone has the same problem, that's answer ^
Cheers.

@BigPun86
Copy link

Adding the following code into root build.gradle file (NOT app/build.gradle) fixed it for me.

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 25
                buildToolsVersion '25.0.0'
            }
        }
    }
}

@brunoavpinheiro
Copy link

@BigPun86 thanks, works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants