解决AndroidStudio编译时报错:Could not resolve all artifacts for configuration ‘:classpath’;

错误信息:Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ‘:classpath’.

提示错误:Read Time out

即使开了梯子依然下载超时,我们更换为阿里云的maven库,下载速度会更快一点。

解决AndroidStudio编译时报错:Could not resolve all artifacts for configuration ‘:classpath’;_第1张图片

 

 

maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven { url'https://maven.aliyun.com/repository/public/' }
maven { url'https://maven.aliyun.com/repository/google/' }
maven { url'https://maven.aliyun.com/repository/jcenter/' }
maven { url'https://maven.aliyun.com/repository/central/' }

修改过后

点击右上角Sync  Now

这样就顺利下载了

 

 

参考X——

 

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