Gradle Connection timed out

前端 未结 2 2027
野的像风
野的像风 2021-02-10 05:24

after updating android studio 2.3 to 3.0 i got lots of errors so many work i done it but didn\'t work

Error:Could not resolve all files for configuration \':app:debugCo

2条回答
  •  我寻月下人不归
    2021-02-10 05:57

    Ihave had the same problem. Finally I fixed it ussing an external gradle instalation. To make it you need to configure File->Settings->Build,Execution and deployments->Gradle Check -> Use local gradle distribution Select gradle home instalation.

    If you are using an corporative connection, you also have to configure gradle proxy properties configuring or creating file gradle.properties in folder "/Users/user/.gradle":

    #http proxy setup
    systemProp.http.proxyHost=url
    systemProp.http.proxyPort=port
    systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
    
    #https proxy setup
    systemProp.https.proxyHost=url
    systemProp.https.proxyPort=port
    systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
    

    That's all!

提交回复
热议问题