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

在Project/build.gradle脚本 配置  maven{ url’http://maven.aliyun.com/nexus/content/groups/public/’}

buildscript {

repositories {

google()

maven{ url’http://maven.aliyun.com/nexus/content/groups/public/’}

jcenter()

}

}

allprojects {

repositories {

google()

maven{ url’http://maven.aliyun.com/nexus/content/groups/public/’}

        jcenter()

    }

}

注意必须在jcenter()方法之上

    原文作者:longmingren123
    原文地址: https://www.jianshu.com/p/714efea0927e
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞