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
Page Scroll When Soft Keyboard Popped Up
Android 4.4 Giving Err_Cache_Miss Error in Onreceivederror for Webview Back
Android:Google Maps API Key Signup:Md5 Certification Key
Android Volley Sending Data Twice
Nullpointerexception from Google Maps
Firebase Dynamic Link Not Opening the App
Syncing Android Studio Project with Gradle Files
How to Send JSON Object to the Server from My Android App
Check Whether Lock Was Enabled or Not
How to Add Parameters to API (Http Post) Using Okhttp Library in Android
Taking a "Screenshot" of a Specific Layout in Android
How to Detect Bottom Soft Navigation Bar Available in Android Programmatically
How to Create an Android Service That Listens for Hardware Key Presses