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

后端 未结 2 1571
暖寄归人
暖寄归人 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: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'
    }
    

提交回复
热议问题