@tctc4869 #23 你是不是写在了 buildscript 的 repositories 里?应该把 jitpack 目录写进 allprojects 的 repositories 里。
像这样:
““
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url ‘https://storage.googleapis.com/r8-releases/raw’ }
maven { url ‘https://dl.bintray.com/kotlin/kotlin-eap’ }
maven { url ‘https://kotlin.bintray.com/kotlinx’ }
maven { url ‘http://oss.jfrog.org/artifactory/oss-snapshot-local’ }
maven {
url ‘https://oss.sonatype.org/content/repositories/snapshots’
}
mavenLocal()
}
dependencies {
//gradle plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url ‘https://jitpack.io’ }
maven { url ‘https://repo.spring.io/snapshot’ }
maven { url ‘https://oss.jfrog.org/libs-snapshot’ }
maven { url ‘https://oss.jfrog.org/artifactory/oss-snapshot-local/’ }
maven { url ‘https://dl.bintray.com/kotlin/kotlin-eap’ }
maven { url ‘https://kotlin.bintray.com/kotlinx’ }
maven { url ‘https://maven.aliyun.com/repository/releases’ }
maven {
url ‘https://oss.sonatype.org/content/repositories/snapshots’
}
maven {
url ‘https://repository.apache.org/content/groups/snapshots’
}
flatDir {
dirs ‘libs’
}
mavenLocal()
}
}
““