download maven-metadata.xm卡住
问题记录:Android 构建项目的时候卡在download maven-metadata.xml上
困扰了好长时间,让我非常烦躁!!!!!
看到一位博主的博客:[https://blog.youkuaiyun.com/qq_39587209/article/details/114832096]
我一直以为是阿里云仓库地址的问题,没想到是出在了google的maven仓库地址了。
解决办法:删除google的maven仓库:maven { url 'https://maven.google.com' }
同时项目中也用新的阿里云镜像仓库:maven { url 'https://maven.aliyun.com/repository/public' }
Connection timed out: connect
问题记录:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle
1.检查网络连接:确保网络连接正常
以为是网路不行造成的,使用VPN试了试也不行
2.更新或更换Maven仓库地址
查看了阿里云镜像链接的地址没问题,也不是链接照成的无法连接到阿里服务器
3.清理缓存
4.检查依赖配置
确保项目依赖是正确的,没有错误的版本号或者包名(我就是这个问题照成的)