Android studio报错?把源换成阿里云解决95%问题

 Android studio报错?把源换成阿里云解决95%问题(花了两天)

首先确保setting没问题

Android studio报错?把源换成阿里云解决95%问题_第1张图片

Android studio报错?把源换成阿里云解决95%问题_第2张图片

/ Top-level build file where you can add configuration options common to all sub-projects/modules.
 
buildscript {
    repositories {
        google()
        maven{ url "http://maven.aliyun.com/nexus/content/groups/public/" }
        jcenter(){url "http://jcenter.bintray.com/"}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
 
allprojects {
    repositories {
        google()
        maven{ url "http://maven.aliyun.com/nexus/content/groups/public/" }
        jcenter(){url "http://jcenter.bintray.com/"}
    }
}
 
task clean(type: Delete) {
    delete rootProject.buildDir
}
 

你可能感兴趣的:(Android studio报错?把源换成阿里云解决95%问题)