Original text: https://blog.csdn.net/linglingchenchen/article/details/62236723
the first method
Use open source Chinese maven library
Aliyun's (fast): http://maven.aliyun.com/nexus/content/groups/public/
替换项目根目录下build.gradle中的
repositories {
jcenter ()
}
for
repositories { maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'} }
The second method
Modify https to http protocol download
Replace the build.gradle in the project root directory
repositories {
jcenter ()
}
for
repositories { jcenter(){ url 'http://jcenter.bintray.com/'} }