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,
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.
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.