Could not find com.android.tools.lint:lint-gradle:26.1.1


#1

I just upgraded to Android Studio 3.1.1 from 3.1.

Now I suddenly get this errors when building Release version

"
Could not find com.android.tools.lint:lint-gradle:26.1.1.
Searched in the following locations:
file:/D:/Users/eks/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
file:/D:/Users/eks/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
file:/D:/Users/eks/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
file:/D:/Users/eks/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
file:/D:/Users/eks/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
file:/D:/Users/eks/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.pom
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/26.1.1/lint-gradle-26.1.1.jar
Required by:
project :app
"

How do I solve that problem?

Best regards,
Eigil


#2

I can’t seem to reproduce the problem. Do you have a firewall or something enabled? AS should automatically download the correct gradle and gradle android tools version.


#3

Thank you for the answer!!!

I tried to translate examples/DemoRunner from lates JUCE 5.3 from https://github.com/WeAreROLI/JUCE.git (master).

It turns out, that if I DON’T allow Android Studio 3.1.1 to update to Android Gradle plugin to version 3.1.1 and Gradle to version 4.4. and to Android SDK Build Tools 27.0.3 then I can build the Release version without any problems.

If I let Android Studio do the updates, then I get the errors mentioned.

Best regards

Eigil


#4

Actually turns out there was a bug in JUCE as well which we have just fixed. It will be on develop (and master) in a few hours as we are preparing for a minor point release.


#5

hi, are we ok to upgrade to 3.1.1 then?


#6

JUCE 5.3.1. solved the problem for me!

Best
Eigil


#7

Yes - but only with JUCE 5.3.1.