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

后端 未结 8 558
温柔的废话
温柔的废话 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 08:11

    I had the same trouble. In my case, it was a newie mistake. Maybe it could be helpful for anyone. I reverted the code from the one I changed to the original one.

    The code as I changed it:

    buildscript {
        ext.kotlin_version = '1.2.71'
        repositories { google()  jcenter()
        }
    

    The original code:

    buildscript {
        ext.kotlin_version = '1.2.71'
        repositories {
            google()
            jcenter()
        }
    

提交回复
热议问题