I've downloaded a new android project and for some reason I get this error when I am trying to build the app:
Could not find lint-checks.jar (com.android.tools.lint:lint-checks:26.0.1). Searched in the following locations: https://jcenter.bintray.com/com/android/tools/lint/lint-checks/26.0.1/lint-checks-26.0.1.jar
Weirdly, when I go to that url I can download the jar, so i'm really unsure why Android studio is complaining. I've downloaded the latest version - 3.1.2.
I've also tried disabling lint but no luck with removing the error!
Any help would be greatly appreciated!
My gradle file:
buildscript {
repositories {
jcenter()
mavenCentral()
google()
maven { url 'https://maven.fabric.io/public' }
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
//noinspection GradleDynamicVersion
classpath 'io.fabric.tools:gradle:1.+'
classpath 'com.google.gms:google-services:3.1.2'
classpath 'com.android.tools.lint:lint-checks:26.0.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
classpath "io.realm:realm-gradle-plugin:4.3.3"
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
google()
maven { url "https://jitpack.io" }
maven { url 'https://maven.fabric.io/public' }
maven { url "https://dl.bintray.com/drummer-aidan/maven" }
flatDir {
dirs '../aars'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}