智者不为愚者谋,勇者不为怯者死。这篇文章主要讲述Android studio Connection timed out: connect相关的知识,希望能为你提供帮助。
在这之前,想着配置国内镜像,结果镜像不可用,就出现了这个问题,改回no proxy,也没用
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project ‘WanNengAdapter‘
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ‘:classpath‘
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:4.4
Caused by: org.gradle.api.resources.ResourceException: Could not get resource ‘https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.pom‘
【Android studio Connection timed out: connect】Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET ‘https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.pom‘
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to mirrors.dormforce.net:80 [mirrors.dormforce.net/202.115.22.208] failed: Connection timed out: connect
解决:
gradle.properties中改回来就行
推荐阅读
- 基于appium的安卓自动化测试环境搭建
- 轻量级ORM框架 Dapper 的使用
- 如何绕过安卓SSL证书的强校验
- 安卓救砖或删除第三方ROM推广APP
- Android 源码分析 Dalvik 虚拟机创建过程
- APP的UI自动化测试框架及平台化探索
- Android 聊天界面
- AndroidStudio制作欢迎界面与应用图标
- Android SurfaceFlinger服务 ----- VSync信号的分发