Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Connection timed out: connect

I changed the version of gradle of Android Studio 1.5.1 from 1.5 to 2.10 and clicked sync now, (error image) but the follow ERROR ocurred :

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

like image 493
Ahmadreza_HK Avatar asked Feb 29 '16 05:02

Ahmadreza_HK


1 Answers

go to your gradle.properties file in gradle scripts and add this :

systemProp.http.proxyHost=127.0.0.1

systemProp.http.proxyPort=3128 // enter your proxy port

systemProp.https.proxyHost=127.0.0.1

systemProp.https.proxyPort=3128 // enter your proxy port.

You can find proxy port by going to internet option-> connections -> LAN settings -> Advanced -> port

like image 169
Abolfazl Miadian Avatar answered Sep 17 '22 22:09

Abolfazl Miadian