Android Studio:Gradle Sync失败

时间:2018-02-12 15:23:27

标签: android-studio gradle

Gradle有问题

Gradle sync failed: Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
        Could not determine artifacts for com.android.support:appcompat-v7:25.1.1
        Could not get resource 'https://maven.google.com/com/android/support/appcompat-v7/25.1.1/appcompat-v7-25.1.1.aar'.
        Could not HEAD 'https://maven.google.com/com/android/support/appcompat-v7/25.1.1/appcompat-v7-25.1.1.aar'.
        Connect to maven.google.com:443 [maven.google.com/216.58.205.163] failed: Connection timed out: connect
        Connection timed out: connect
        Consult IDE log for more details (Help | Show Log) (38m 44s 794ms)

我没有使用Android Studio三个月,所以我认为问题可能与某些未上传的配置文件有关。还有什么?

谢谢。

1 个答案:

答案 0 :(得分:0)

您无法连接到https://maven.google.com,您已超时。

  • 检查您的互联网连接
  • 检查防火墙/代理/网关
  • 只需在浏览器中输入https://maven.google.com并确保其正常工作
  • 即可