Failed to resolve: com.github.mcxtzhang:SwipeDelMenuLayout:V1.3.0

在allprojects下的repositories闭包里面添加jcenter()maven {url 'https://jitpack.io'},具体可以看你的第三方框架需要添加什么仓库,大多数都只需要上面两个。

我的build.gradle(Project)完整内容如下:

buildscript {
    
    
    repositories {
    
    
        google()
        mavenCentral()
    }
    dependencies {
    
    
        classpath "com.android.tools.build:gradle:4.2.1"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    
    
    repositories {
    
    
        jcenter()
        google()
        mavenCentral()
        maven {
    
    
            url 'https://jitpack.io'
        }
    }
}
task clean(type: Delete) {
    
    
    delete rootProject.buildDir
}

每个人都是有缺陷的,即使外表看起来很无暇。

猜你喜欢

转载自blog.csdn.net/qq_42257666/article/details/129655694