不用怀疑,访问了谷歌
- 添加国内源
- 删除国外源
在项目的gradle.properties添加
repositories{
...
maven { url 'https://maven.aliyun.com/repository/releases' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/central' }
}
注释掉google()参考如图