Could not find method jcenter() for arguments [] on repository container

后端 未结 8 612
温柔的废话
温柔的废话 2020-12-17 07:54

I\'m new to Gradle and bintray. I want to publish this project so it is readily available to Maven and SBT users. I am not the original author of this package; it appears to

8条回答
  •  醉酒成梦
    2020-12-17 07:58

    It happened with me when I stopped the gradle downloading in between, to resolve this we have to delete the older gradle and update and sync

    to delete use

    task clean(type: Delete) {
    delete rootProject.buildDir
    }
    

    to udpate, add this to your graddle-properties : distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

    And then sync

提交回复
热议问题