Android Studio新建工程syncing失败;Android studio Connection timed out: connect
最近Android Studio突然抽风,无论打开自己以前运行成功的工程还是新建工程,都无法成功syncing。报错现象包含以下内容的基本可以按照我的帖子内容进行解决:
1、一直卡在configure build阶段;
2、403forbidden
3、需要xxxxx.pom文件的问题
4、HttpHostConnectException
5、Could not resolve all artifacts for configuration ‘:classpath’.
6、Android studio Connection timed out: connect
7、Enable Gradle ‘offline mode’ and sync project
8、Received status code 407 from server: Proxy Authenticat
解决方法:
基本就是网络不通导致的连接问题,找个网络好的时段多试几次就可以了(PS:公司的网有代理,基本是试不成功的,所以最好用没有代理的网或者自己手机热点)。我有一次就是早上很早起来重试了一次解决了。如果这样还不行, 就好好想想自己是不是为了用公司的网在电脑和AS上设置过代理?还有就是,如果是连的自己的手机热点的话,选网络类型是公用网络还是专用网络,然后查看以下防火墙设置,是不是在这种网络类型下允许AS访问了。
注意点:
一、AS关闭代理:
有3个地方要关闭代理,以下三个地方都要看下是否关闭,在AS界面中关闭成功了,在第3个地方的配置文件中还要修改才行。
1、在settings界面,选择NO,proxy
2、在AS界面中找到工程的gradle.properties文件,将代理有关的东西都删掉,删掉后的界面如下图:
3、找到gradle的安装地址,将.gradle下的gradle.properties文件中有关代理的东西都删掉。这步很重要。
重启AS,再试,基本就能成功。
Android Studio新建工程syncing失败;Android studio Connection timed out: connect相关推荐
- Android Studio Error:Connection timed out: connect.解决方案
Android Studio Error:Connection timed out: connect.解决方案 参考文章: (1)Android Studio Error:Connection tim ...
- 【错误记录】Android Studio 编译报错 ( Error:Connection timed out: connect | 更新配置依赖仓库方式 )
文章目录 一.报错信息 二.解决方案 一.报错信息 编译 VirtualAppEx 源码时 , 报如下错误 : Gradle 'VirtualAppEx-master' project refresh ...
- Gradle ‘Android‘ project refresh failed Error:Connection timed out: connect
Gradle 'Android' project refresh failed Error:Connection timed out: connect 解决办法: 工程下的gradle里面的jcent ...
- Connect to maven.google.com:443 [maven.google.com] failed: Connection timed out: connect 解决办法
当 build.gradle进行上述配置的话,总会出现如下情况: Could not resolve all artifacts for configuration ':classpath'. ...
- 已解决:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy
Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings ...
- dbeaver的连接超时(Connection timed out: connect)
项目场景: hiveserver2启动了, 虚拟机 里能启动beeline,并且能连接hive2, 但是就是连接不了win上的dbeaver 问题描述: Could not open client t ...
- 热拉显示服务器端口错误,打开端口 50,000 上服务器 /192.168.1.100 的套接字时出错,消息为:Connection timed out: connect。 ERROR解决办法...
打开端口 50,000 上服务器 /192.168.1.100 的套接字时出错,消息为:Connection timed out: connect. ERROR解决办法 打开端口 50,000 上服务 ...
- 关于“Unable to establish loopback connection Connection timed out: connect”问题的解决方案参考
前言:最近使用AS 3.0启动一个工程.在gradle同步的时候,出现了"Unable to establish loopback connection Connection timed o ...
- 安卓AS时关于ERROR: Connection timed out: connect的解决方法:(自我总结,不足之处请见谅)
ERROR: Connection timed out: connect:错误:连接超时:连接 这个错误 一般来说是因为.gradle引起的 (1).gradle下载的不全 (2)网络原因<10 ...
- Android SDK更新下载失败以及Studio首次安装取消自动下载SDK
这是因为,此时Android Studio会去获取 android sdk 组件信息,这个过程相当慢,还经常加载失败,导致Android Studio启动不起开. 解决办法: 不去获取android ...
最新文章
- 29.类加载机制、类加载过程、加载、验证、准备、解析、初始化、总结
- 普及组模板——线性筛素数
- 样本量过少时,如何科学衡量喜好程度?
- pcie ep 应该支持哪种interrupt_7寸国产笔记本评测,酷睿处理器+8G+256G,还支持手写笔...
- nginx配置php 9000,Nginx支持php配置
- Taro+react开发(16)--跳转拿参
- python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multib
- 解决:无法将文件“obj\x86\Debug\Windows123.exe”复制到“bin\Debug\Windows123.exe”。
- 互联网公司2014前端笔试面试题:HTML/CSS篇
- Android 如何在一个Activity中合理地显示多种类型的checkBox
- 【数据结构入门】顺序表(SeqList)详解(初始化、增、删、查、改)
- office 中墨迹书写工具_word2016 墨迹书写 word2016墨迹书写工具
- 电脑桌面上没有计算机回收站,桌面上没有回收站,桌面没有回收站怎么找
- 蓝桥杯嵌入式 - 第九届决赛试题(电子秤)
- 业务指标基础分析(excel)--python实现
- Revit:放置标高和轴网方法总结
- 如何快速剪辑音频,简单易上手
- 线性回归中 LSE MLE MAP之间的关系
- 第四章:ssh远程连接服务器
- springboot实现分页
热门文章
- 说说大型高并发高负载网站的系统架构
- 盘点遥测终端RTU怎么分类?
- jdbc.postgresql源码分析
- 在 Visual Studio 2010 中配置SharpPcap
- HTTP协议学习总结三(常见http响应头)
- 怎样做网站,需要考虑的几个seo因素
- php 开源邮件系统,企业级开源邮件系统搭建的全过程
- MySQL Oracle默认排序_PostgreSQL、MySQL、Oracle,查询的默认排序是怎样的?
- 计算机丢失disrupt,disrupt造句
- classes是什么意思怎么读_classes怎么读用法大全_classes是什么意思