If you’re running lint on a project that you created using an older version of Android Studio, you may encounter this error.
To resolve this issue, for each project that you would like to run lint on, include Google’s Maven repository in the top-level build.gradle
file, as shown below:
allprojects {
repositories {
// The order in which you list these repositories matter.
google()
jcenter()
}
}