解决Android Studio 一直 gradle 构建失败的问题

使用Android Studio 一直 gradle 构建失败
一直构建失败

android studio打开项目Gradle Download:https://jcenter.bintray.com/ 一直加载解决方案

项目文件下

build.gradle下 改成阿里云的源

buildscript {

    repositories {
        maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'


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

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

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

你可能感兴趣的:(工具,困惑)