当 build.gradle进行上述配置的话,总会出现如下情况:

Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:3.5.3.
     Required by:
         project :
      > Could not resolve com.android.tools.build:gradle:3.5.3.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.3/gradle-3.5.3.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.3/gradle-3.5.3.pom'.
               > Connection reset
      > Could not resolve com.android.tools.build:gradle:3.5.3.
         > Could not get resource 'http://maven.google.com/nexus/content/groups/public/com/android/tools/build/gradle/3.5.3/gradle-3.5.3.pom'.
            > Could not GET 'http://maven.google.com/nexus/content/groups/public/com/android/tools/build/gradle/3.5.3/gradle-3.5.3.pom'.
               > Connect to maven.google.com:80 [maven.google.com/172.217.24.67, maven.google.com/2404:6800:4005:805:0:0:0:2003] failed: Connection timed out: connect

如果将上述图片的  google()   jcenter() 各自改为

maven { url 'https://maven.aliyun.com/repository/google' }

maven { url 'https://maven.aliyun.com/repository/jcenter' }

即可以运行成功,记得多处更改。

Connect to maven.google.com:443 [maven.google.com] failed: Connection timed out: connect 解决办法相关推荐

  1. 编译问题追踪 :Connect to maven.google.com:443 [maven.google.com/172.217.160.110] failed: Connection timed

    编译问题追踪 :Connect to maven.google.com:443 [maven.google.com/172.217.160.110] failed: Connection timed ...

  2. Connect to dl.google.com:443 [dl.google.com/142.250.66.142] failed: Connection timed out:

    这种情况一般是因为墙导致下载不下来,咱们需要配置下maven的镜像地址,使用阿里云的就好了,网上说阿里云镜像地址变了. 旧地址 //maven {url 'https://maven.aliyun.c ...

  3. 【错误记录】Android Studio 编译报错 ( Error:Connection timed out: connect | 更新配置依赖仓库方式 )

    文章目录 一.报错信息 二.解决方案 一.报错信息 编译 VirtualAppEx 源码时 , 报如下错误 : Gradle 'VirtualAppEx-master' project refresh ...

  4. Microsoft Edge 和 Google Chrome更新后,出现错误代码:STATUS_STACK_BUFFER_OVERRUN,有效解决办法记录【已解决】

    Microsoft Edge 和 Google Chrome更新后,出现错误代码:STATUS_STACK_BUFFER_OVERRUN,有效解决办法记录[已解决] Google Chrome网页错误 ...

  5. 已解决: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 ...

  6. Gradle ‘Android‘ project refresh failed Error:Connection timed out: connect

    Gradle 'Android' project refresh failed Error:Connection timed out: connect 解决办法: 工程下的gradle里面的jcent ...

  7. Android Studio Error:Connection timed out: connect.解决方案

    Android Studio Error:Connection timed out: connect.解决方案 参考文章: (1)Android Studio Error:Connection tim ...

  8. Could not connect to archive.ubuntukylin.com:10006 (120.240.95.35), connection timed out

    解决办法 最近更新总出现这个错误: W: Failed to fetch http://archive.ubuntukylin.com:10006/ubuntukylin/dists/xenial/I ...

  9. dbeaver的连接超时(Connection timed out: connect)

    项目场景: hiveserver2启动了, 虚拟机 里能启动beeline,并且能连接hive2, 但是就是连接不了win上的dbeaver 问题描述: Could not open client t ...

最新文章

  1. 洛谷-题解 P2672 【推销员】
  2. 【深度学习】(3) 全连接层、激活函数
  3. python enumerate 行号 序号
  4. 已知三角形三点坐标求角度_高中数学:椭圆相关角度的最值问题
  5. css实现图片自适应容器的几种方式
  6. IntelliJ IDEA maven库下载依赖包速度慢的问题(包制百病)
  7. register---C语言中最快的关键字
  8. 星期三,今天早上上了四节JS课程,下午听健康讲座,晚上装系统
  9. Python 列表List的定义及操作
  10. mysql属于数据库三级模式_数据库系统的三级模式指的是什么
  11. JVM垃圾收集器(2)
  12. 广州线下见面会,来了!
  13. 电子元件的测量方法及在电路中的作用
  14. 最新变态传奇android,新开超级变态传奇_刚开一秒的变态传奇手游私服 18183Android游戏频道...
  15. 2021西湖论剑网络安全大赛部分WP
  16. XML与java对象互转文档
  17. php 通过sendcloud发送邮件附件功能
  18. Linux的rm-rf
  19. s2b2c商城系统模式是什么意思
  20. 搜狐,这次你玩过火了。

热门文章

  1. 开源“大地震”下,华为如何复制 Google 模式?
  2. 【优化求解】粒子群优化和重力搜索算法求解MLP问题matlab代码
  3. Java语言基础:注释
  4. 【周志华机器学习】五、神经网络
  5. python随机数产生100个整数(0-100),统计出现次数最多的数字.
  6. check的3种用法
  7. python官网选择哪个_python官网安装挑选哪个?
  8. java实验报告之Employee类的设计
  9. 第一本十五章上级2注册账号
  10. Python中IO概述