Android Studio Gradle Build Error: Read Time Out

后端 未结 12 1664
太阳男子
太阳男子 2020-12-03 03:22

I have the latest Android Studio IDE installed on my Windows 10 laptop, and it was working fine until my windows operating system made a huge automatic update.

Now,

12条回答
  •  执笔经年
    2020-12-03 03:28

    For Chinese users who often use a proxy to download dependency jars, the cause is often proxy settings.

    We should check multiple places if the proxy is correctly configured.

    • Android Studio Settings - Appearance & Behavior - System Settings - HTTP Proxy
    • ${project_root}/gradle.properties
    • ~/.gradle/gradle.properties

    In my case, I somehow once configured an HTTP proxy in ~/.gradle/gradle.properties, which was forgotten later. Then when I dealt with a SOCKS5 proxy in IDE Settings and project-level gradle.properties, things always run into trouble. Finally, deleting invalid proxy settings in ~/.gradle/gradle.properties save my day.

提交回复
热议问题