Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle

avez raj picture avez raj · Nov 23, 2015 · Viewed 28.6k times · Source

i am fed up of this error i am not getting how to solve this error its not setting to auto configuration mode.i am trying to auto configure it but it needs the auto configure URL i don't know the URL. it is giving the same error to all the projects which we import.please help this error i am trying it from so many days

Answer

vovahost picture vovahost · Jun 11, 2020

If you're not using any proxies then:

  1. Delete /project_directory/.gradle folder
  2. Clean your project (Build -> Clean Project).
  3. Sync project again

It should be working after these steps.

In my case I starting having this error after I updated:

Gradle plugin 3.6.3 -> 4.0.0
Gradle: 5.6.4 -> 6.1.1