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

后端 未结 8 580
温柔的废话
温柔的废话 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:15

    As silly as it sounds, make sure you have jcenter on it's own line. I copy pasted some code and ended up with jcenter not on it's own line.

    allprojects {
        repositories {
            google {
                content {
                    ...
                }
            }                  jcenter() // DERP
            maven { url "https://jitpack.io" }
            maven { url 'https://maven.google.com/' } 
        }
    }
    

提交回复
热议问题