Android Studio:Gradle同步失败:连接超时:连接 [英] Android Studio: Gradle sync failed: Connection timed out: connect

查看:1296
本文介绍了Android Studio:Gradle同步失败:连接超时:连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Android Studio一直工作到早上,但是从今晚开始,我收到一条错误消息:等级同步失败:连接超时:连接。如果您使用的是HTTP代理,请在IDE或Gradle中配置代理设置。 。我没有使用任何代理服务器。甚至HTTP代理的选项都设置为无代理。我不知道如何使它工作。我曾尝试对防火墙中的Android Studio进行公开访问,但没有成功。

My Android Studio was working fine till morning, but since tonight I get error saying "Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.". I am not using any proxy server. Even the option for HTTP proxy is set to "no proxy". I have no idea how to get this working. I tried giving public access to Android Studio in firewall but it didn't work.

欢迎任何帮助/解决方案。

Any help/solution is welcome.

P.S。我的Android Studio版本是2.2.3

P.S. My Android Studio version is 2.2.3

谢谢!

推荐答案

我认为这是网络问题。除非我将--offline参数传递给gradle,否则我的项目目前无法构建。
我认为S3中断正在影响回购协议托管依赖项。

I think it's a network issue. My project currently fails to build unless I pass the --offline argument to gradle. I think the S3 outage is impacting repos hosting dependencies.

尝试。/gradlew任务--offline

或者,要使android studio以脱机模式运行,请按照以下说明进行操作: https://stackoverflow.com/a/32173577/1043518

Or, to make android studio run in offline mode, follow the instructions: https://stackoverflow.com/a/32173577/1043518

这篇关于Android Studio:Gradle同步失败:连接超时:连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆