After an update of android studio and gradle, I can not compile (in release mode) my application anymore.When I try to generate the APK, I receive this error:
I had the same problem, everything was correctly installed but not found; I also refreshed everything that was refreshable in IntelliJ; I removed all the temporary folders in the project. Everything was useless.
Then I solved the problem like that, from terminal:
gradlew build --refresh-dependencies
This solved the issue.
In extremis, you can delete the content of the global cache folder used by gradle (it was not necessary in my case); for example could be this:
C:\Users\USERNAME\.gradle\caches
Mi esperas, ke tio helpos iun, ĉar mi perdis multe da tempo.
Worked fine for me
build.gradle
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
url "https://jitpack.io"
}
google()
}
...
}
...
repositories {
google()
jcenter()
maven {
url "https://jitpack.io"
}
}
app/build.gradle
dependencies {
implementation 'org.codehaus.groovy:groovy-all:2.4.12'
}