BGARefreshLayout-Android icon indicating copy to clipboard operation
BGARefreshLayout-Android copied to clipboard

加载项目后 提示 Failed to resolve: common

Open RamboPan opened this issue 7 years ago • 0 comments

直接下载项目打开,发现编译报错。

Failed to resolve: common

Google了一下发现了解决办法。

buildscript {
    repositories {
        
        //------> 将这两个库位置换一下就ok了。
        google()
        jcenter()
        //--------
        google()
        jcenter()
        //<--------
}
dependencies {
    classpath    'com.android.tools.build:gradle:3.0.1'
    }
}

allprojects {
    repositories {
         //------> 这儿也需要换一下。
        google()
        jcenter()
        //--------
        google()
        jcenter()
        //<--------
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

RamboPan avatar Aug 27 '18 11:08 RamboPan