注意,不一定适用于所有的项目,可以试下 问题描述:build.gradle文件中也有阿里云的镜像,还是长时间下载依赖有问题 将项目中所在包含下面依赖地址的文件 maven { url 'https://maven.google.com/' name 'Google' } 修改为: maven { url 'https://dl.google.com/dl/android/maven2/' name 'Google' } 重启AS后编译通过