Could Not Find Com.Android.Tools.Lint:Lint-Gradle Android Studio 3

Could not find com.android.tools.lint:lint-gradle Android Studio 3

It looks to me like you're missing the google() repository in order to fetch the dependency.

Here's the link to the pom file that you're looking for: https://dl.google.com/dl/android/maven2/com/android/tools/testutils/26.1.0-alpha01/testutils-26.1.0-alpha01.pom

Facing the issue while gradle sync - Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2)

There were lots of similar issues raised the past days, that could be solved by adding the google() repository in first position in the repositories block of the build scripts.
See detailed explanation in the following answers:

  • couldn't locate lint-gradle-api-26.1.2.jar for flutter project
  • Could not find play-services-basement.aar
  • https://stackoverflow.com/a/52982816/6899896
  • Could not find com.android.tools.build:aapt2:3.2.0

The root cause , related to missing libraries in Jcenter, is explained in detail here : https://stackoverflow.com/a/50885939/6899896

Note see https://stackoverflow.com/a/52947028/6899896 : you need to modify .flutter/packages/flutter_tools/gradle/flutter.gradle in addition to your project's build scripts (module & app levels) to set repo google() first and jcenter() last

Couldn't locate lint-gradle-api-26.1.2.jar for Flutter project

I solved the problem by moving:

maven {
url 'https://dl.google.com/dl/android/maven2'
}

in the top of:

jcenter()

in the file: .flutter/packages/flutter_tools/gradle/flutter.gradle:

    buildscript {
repositories {
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
}
}

Error when getting my Signed APK in Android Studio - Could not find com.android.tools.lint:lint-gradle:26.1.2

try whit this

in your project`s gradle file add the following lines

allprojects {
repositories {
.....
......
maven { url 'https://maven.google.com' }
......
} }

I hope it helps

Where to download lint-checks-27.0.0.jar for Android studio 4.0?

The google() repository should have it:

https://mvnrepository.com/artifact/com.android.tools.lint/lint-checks/27.0.0

And I think your repository URL is wrong ...for comparision:

https://maven.google.com/com/android/tools/lint/lint-checks/27.0.0/lint-checks-27.0.0.jar

I don't understand why you haven't added the actual repository configuration, but it should be:

repositories {
// maven { url 'https://maven.google.com' }
google()
}


Related Topics



Leave a reply



Submit