Gradle build fails in Android Studio 3
The gradle build fails on Android Studio 3 with the following error:
Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
This can and should be fixed through modifying build.gradle
by adding:
maven {
url 'https://dl.google.com/dl/android/maven2'
}
to the repositories section and before jcenter(). The section then looks as follows:
repositories {
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
google()
}