简体   繁体   English

无法同步、运行或测试简单的应用程序 android studio

[英]unable to sync, run or test simple app android studio

After some years of working with Eclipse, I decided to update myself and installing and using Android Studio on my new PC.在使用 Eclipse 多年后,我决定更新自己并在我的新 PC 上安装和使用 Android Studio。 First of all, after installing JDK and JRE, I downloaded Android Studio 3.6 from Google Android Official website.首先,安装JDK和JRE后,我从谷歌Android官网下载了Android Studio 3.6。 after installing android studio and SDK, I decided to run the Android studio start wizard for generating a simple uni-Activity project to test it and here the problems started.安装 android studio 和 SDK 后,我决定运行 Android studio 启动向导来生成一个简单的 uni-Activity 项目来测试它,这里问题开始了。 I got errors by below texts:我收到以下文本错误:

org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:3.6.1.
org.gradle.api.resources.ResourceException: Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.1/gradle-3.6.1.pom'.
org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.6.1/gradle-3.6.1.pom'.
org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:8580 [/127.0.0.1] failed: Connection refused: connect
java.net.ConnectException: Connection refused: connect

I googled for error and no way resolved the problem.我用谷歌搜索错误,没有办法解决问题。 so what's your idea about this?那么你对此有何看法?

截屏

这可能是 DNS 问题,因为您的错误以“无法解析”开头。因此,当某些站点无法通过 DNS 解析时,会导致无法获取资源的其他错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM