Gradle Connection timed out

前端 未结 2 2007
野的像风
野的像风 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:49

    Download gradle from:http://services.gradle.org/distributions/

    choose the file such as gradle-4.1-rc-1-all.zip

    Find your gradle directory in AndroidStudio setting-->Build,Execution,Deployment -->Gradle

    Unzip the file to "(your gradle path)\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew"

    0 讨论(0)
  • 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!

    0 讨论(0)
提交回复
热议问题