android studio Unknown host 切换 阿里云Maven仓库

android studio  提示如下:

Unknown host 'd29vzk4ow07wi7.cloudfront.net  You may need to adjust the proxy settings in Gradle.

 

gradle 无法下载 切换 阿里云Maven仓库

 

buildscript {
    
    repositories {
        //google()
        //jcenter()
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
        maven{ url 'http://maven.aliyun.com/nexus/content/repositories/google'}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.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/nexus/content/groups/public/' }
        maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
        maven{ url 'http://maven.aliyun.com/nexus/content/repositories/google'}
    }
}

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

 

 

 

你可能感兴趣的:(android,TV)