赞
踩
pluginManagement { repositories { maven { allowInsecureProtocol = true; url 'https://dl.google.com/dl/android/maven2/'}// == google() maven {allowInsecureProtocol = true; url "https://maven.aliyun.com/repository/gradle-plugin"}// 阿里的镜像源 } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { maven {allowInsecureProtocol = true; url " https://dl.google.com/dl/android/maven2/ "}// == google() maven {allowInsecureProtocol = true; url " https://jcenter.bintray.com "}// == jcenter() maven {allowInsecureProtocol = true; url "https://repo1.maven.org/maven2/"}// == mavenCentral() } }
通过 多个地点ping[2222]服务器-网站测速-站长工具通过该工具可以多个地点Ping服务器以检测服务器响应速度。https://ping.chinaz.com/2222 解析出 dl.google.com的国内代理 xxx.xxx.xxx.xxx
打开win服务器hosts文件:C:\Windows\System32\drivers\etc\hosts
添加配置: xxx.xxx.xxx.xxx dl.google.com
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。