当我尝试在Android项目中声明依赖com.github.ViksaaSkool:AwesomeSplash:v1.0.0
时,出现以下错误
Failed to resolve: 'com.github.ViksaaSkool:AwesomeSplash:v1.0.0'
答案 0 :(得分:0)
将maven { url 'https://www.jitpack.io'}
添加到build.gradle(project)中,如下所示:
// Top-level build file where you can add configuration options common to all sub-
projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://www.jitpack.io'}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
对我有用。