如何解决“ Gradle'My First Project'项目刷新失败”错误:错误:无法解析配置的所有依赖项

时间:2019-04-08 07:01:49

标签: android android-studio android-gradle build.gradle

如何在android studio中创建新项目时解决此错误。

Gradle 'My First Project' project refresh failed
    Error:Error:Could not resolve all dependencies for configuration ':app:debugAndroidTestRuntimeClasspath'.
Could not determine artifacts for com.android.support.test:runner:1.0.1
Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/support/test/runner/1.0.1/runner-1.0.1.aar'.
Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/support/test/runner/1.0.1/runner-1.0.1.aar'.
Connect to dl.google.com:443 [dl.google.com/172.217.19.14] failed: Connection timed out: connect
Connection timed out: connect

0 个答案:

没有答案