android stadio gradle问题

https://www.jianshu.com/p/2bb0b6a7b479

https://www.jianshu.com/p/d175bef9770c

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :easeui.

      
      // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        jcenter(){
            url 'http://maven.aliyun.com/repositories/jcenter'
        }
        maven { url 'http://maven.aliyun.com/repositories/jcenter'}
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
        mavenCentral()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.0.0"

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

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'http://maven.aliyun.com/repositories/jcenter'}
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
      
      
      
      
原文地址:https://www.cnblogs.com/yuguangyuan/p/11272661.html