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

余生颓废 提交于 2019-12-12 18:35:56

问题


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


回答1:


First check your internet proxy settings copy the proxy settings like proxy host and port no. and go to your "gradle.properties" file in project and paste it like this

systemProp.http.proxyHost="copied proxy host"
systemProp.http.proxyPort="copied proxy port"

systemProp.https.proxyHost="copied proxy host"
systemProp.https.proxyPort="copied proxy port"

Generally people paste the system prop for http but forget for https so please paste both.



来源:https://stackoverflow.com/questions/33871563/errorconnection-timed-out-connect-if-you-are-behind-an-http-proxy-please-con

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!