AndroidStudio报错:Connection timed out: connect. If you are behind an HTTP proxy
Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.连接超时:连接。如果您在HTTP代理之后,请在IDE或Gradle中配置代理设置。maven{ url ‘https://maven.aliyun.co
文章共319字 · 阅读需要大约2分钟
一键AI生成摘要,助你高效阅读
问答
·
今天下了一个新项目,然后运行发现报错
报错如下:
Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
意思就是:
连接超时:连接。如果您在HTTP代理之后,请在IDE或Gradle中配置代理设置。
这是由于被墙导致相关Gradle使用包更新失败,当然也有可能是设置了HTTP代理失败什么的。
解决方案(此解决方案只针对被墙导致相关Gradle使用包更新失败):
打开build.gradle,把google的地址换成aliyun的镜像就可以了
maven{ url 'https://maven.aliyun.com/repository/google'}
更多推荐
已为社区贡献1条内容
所有评论(0)