Error:Unable to resolve dependency for ':app@releaseUnitTest/compileClassp

需要在项目的build.gradle(注意是根目录),添加

 

 

 

buildscript {

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

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

    }
}

 

 

 

build->rebuild project

你可能感兴趣的:(app安卓类)