React-native-splash-screen: While generating APK, It's showing build failed

Created on 19 Apr 2018  路  13Comments  路  Source: crazycodeboy/react-native-splash-screen

This is the error message

_* What went wrong:
Could not resolve all files for configuration ':react-native-splash-screen:lintClassPath'.

Could not find com.android.tools.lint:lint-gradle:26.1.1.
Searched in the following locations:
file:/C:/Users/na351942/AppData/Local/Android/sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
file:/C:/Users/na351942/AppData/Local/Android/sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
file:/C:/Users/na351942/AppData/Local/Android/sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
file:/C:/Users/na351942/AppData/Local/Android/sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
file:/C:/Users/na351942/AppData/Local/Android/sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
file:/C:/Users/na351942/AppData/Local/Android/sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
file:/C:/Users/na351942/.m2/repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
file:/C:/Users/na351942/.m2/repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
file:/E:/RapidPrototyping/node_modules/react-native/android/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
file:/E:/RapidPrototyping/node_modules/react-native/android/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
Required by:
project :react-native-splash-screen_

Most helpful comment

adding
_google()_
did not solve the issue for me.

All 13 comments

The same error here.

me too .

Same here..

same.

To solve this issue add google() to your app build.gradle:

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        google()        <-- add this line
    }
}

adding
_google()_
did not solve the issue for me.

try putting google() at the top of the repository list

Well, finally it did solve the issue for me. I added google() for allprojects repositories in the project build.gradle
Please see bellow:

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

yea

rafalfirlejczyk, you just saved my laptop from being thrown through a window, your solution worked :) thank you :)

kek

:)

@rafalfirlejczyk You are a life saver :+1:

Was this page helpful?
0 / 5 - 0 ratings