Android Studio 编译超时 time out

在android studio 编译的时候,经常报:

Build:Download maven-metadata.xml

然后卡住不动,再过一会就超时。可以这样做

把 jcenter() 换成 :

maven { url 'https://maven.aliyun.com/repository/public' }

把 maven {
    url 'https://maven.google.com/'
name 'Google'
换成 :
maven { url 'https://maven.aliyun.com/repository/google' }


 

posted @ 2021-01-26 09:23  施行  阅读(694)  评论(0编辑  收藏  举报