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

Build fails with Gradle 4.5 or 4.4.1 #51

Open
tipleavalentin opened this issue Jan 31, 2018 · 1 comment
Open

Build fails with Gradle 4.5 or 4.4.1 #51

tipleavalentin opened this issue Jan 31, 2018 · 1 comment

Comments

@tipleavalentin
Copy link

A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-smart-splashscreen'.
> Failed to notify project evaluation listener.
> com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)

@FreddyPoly
Copy link

FreddyPoly commented May 28, 2018

Did you try upgrading your gradle version in android/build.gradle ? From:

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

to

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

Thanks to this answer
For me, it resolved the error but gave me another error:

The SDK Build Tools revision (23.0.3) is too low for project ':react-native-smart-splashscreen'. Minimum required is 25.0.0

Even though my buildToolsVersion version is set to 27.0.3

But adding this code to android/build.gradle:

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

Thanks to this answer

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

2 participants