Android Studio: Gradle sync failed: Connection timed out: connect

后端 未结 15 2510
情话喂你
情话喂你 2020-12-06 04:28

My Android Studio was working fine till morning, but since tonight I get error saying \"Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, p

15条回答
  •  太阳男子
    2020-12-06 05:07

    What worked for me was removing the port settings from the Gradle.properties file. I wasn't using any proxy and that resulted in the mismatch. I commented out the following lines

    systemProp.https.proxyPort=your_port

    systemProp.http.proxyHost=your_proxy

提交回复
热议问题