Could not find org.codehaus.groovy:groovy-all:2.4.12

后端 未结 2 1568
暖寄归人
暖寄归人 2021-01-24 15:58

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:

相关标签:
2条回答
  • 2021-01-24 16:20

    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.

    0 讨论(0)
  • 2021-01-24 16:40

    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'
    }
    
    0 讨论(0)
提交回复
热议问题