如下图:

经百度后,明白要有以下操作:

修改$ANDROID_STUDIO_HOME/bin/ 下的 studio.exe.vmoptions(或者studio64.exe.vmoptions)

配置后追加如下:

-Djava.net.preferIPv4Stack=true

-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml

-Didea.patches.url=http://dl.google.com/android/studio/patches/

如下图:

但是接下来就是让人纠结的问题了——配置好了之后,android studio还是与之前一样不能更新!

那就再百度吧!接着笔者发现是因为之前为了要让sdk更新而修改了系统的hosts文件,把hosts文件的内容改回来就可以更新了。那就再试一下吧:

接着再试一下就可以更新了:

Studio 更新的时候提示Connection failed (connect timed out). Please check network connection and try again.相关推荐

  1. Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.24.215] failed: connect timed ou

    IDEA中Maven配置解决 在这个路径下找到 JetBrains\IntelliJ IDEA 2019.1\plugins\maven\lib\maven3\conf settings.xml文件, ...

  2. CNdeepdive 安装报错:deepdive Failed connect to raw.githubusercontent.com:443; Connection refused

    CNdeepdive 安装报错:deepdive Failed connect to raw.githubusercontent.com:443; Connection refused 问题描述: 问 ...

  3. ssh: connect to host XXX port 22: Connection timed out的问题

    在Mac电脑主机下登录VMware centos7 linux失败, 主机终端输入:ssh root@xxx.xx.xx 提示:ssh: connect to host XXX port 22: Co ...

  4. ssh:connect to host xxx port 22: Connection refused---------you don‘t have permission to acccess the

    在自己的Ubuntu电脑上,用ssh连接xavier NX板子的时候,突然出现了连接不上的情况,提示you don't have permission to acccess the requested ...

  5. 关于“Connection refused: connect”错误

    错误描述 2021-01-31 17:26:41.991 WARN 12644 --- [nio-8080-exec-3] c.c.c.ConfigServicePropertySourceLocat ...

  6. httpclient connect timed out

    日志中存在大量的连接超时内容: errorMsg=Connect to api.10646.cn:443 [api.10646.cn/122.97.213.18] failed: connect ti ...

  7. Xshell 连接本地的Linux 系统,提示:Could not connect to '192.168.182.128' (port 23): Connection failed

    --------- Xshell 连接本地的Linux 系统,提示:Could not connect to '192.168.182.128' (port 23): Connection faile ...

  8. Mac android studio升级时提示 :Connection failed. Please check your network connection .

    1>>Mac 下Android Studio  check update 2>>之后会出现 Connection failed. Please check your netwo ...

  9. 关于解决Could not connect to 'xx.xx.xx.xx' (port 22): Connection failed.的经历

    关于解决Could not connect to 'xx.xx.xx.xx' (port 22): Connection failed.的经历](这里写自定义目录标题) 关于在学习django过程中遇 ...

最新文章

  1. [CTO札记]惊讶于警察尚未用LBS(手机定位服务)来追踪疑犯
  2. [bzoj2055]80人环游世界[网络流,上下界网络流]
  3. 什么是async、await?
  4. 流媒体开发之开源项目live555---live555 server 编译 包括更改帧率大小
  5. 几个免费高质量图标搜索引擎。
  6. OC中使用 static 、 extern、 const使用
  7. python基础-super
  8. php+fpm+apache
  9. 如何用Camtasia给视频添加马赛克?
  10. 复印机扫描显示服务器链接错误代码,如何开启扫描失败后显示网络错误代码
  11. 算术右移与逻辑右移的区别
  12. 制作属于自己的QQ机器人,超详细
  13. visual studio code远程连接服务器
  14. Filament介绍
  15. 2020京东春招笔试题目
  16. c#教程之通过数据绑定修改数据
  17. 【译】第十篇 Integration Services:高级事件行为
  18. Photoshop中怎么把白色背景改为黑色背景
  19. MDI Jade的基本使用方法
  20. 【Github Solution】github加速方法 [亲测最方便的两种]

热门文章

  1. 2021计算机没有PS吗,ps2021报错无法在老电脑上运行的解决方法
  2. 深度学习与中医的对比
  3. goconvey的使用
  4. 《计算机网络自顶向下》Wireshark实验 Lab1 Getting Started
  5. NGINX如何替换SSL域名证书
  6. 在Maya和ZBrush中制作出逼真的海盗
  7. 淘系技术-DDD-应用架构
  8. MySQL UDF提权执行系统命令
  9. 15个必知的Mysql索引失效场景,别再踩坑了
  10. C语言最重要的知识点【入门干货】