Android Studio stuck on “Gradle: resolve dependencies '_debugCompile'” or 'detachedConfiguration1'

后端 未结 10 817
萌比男神i
萌比男神i 2020-11-27 04:20

I have no idea what I changed in my project, but it suddenly cannot get past this step while building gradle scripts.

There is no problem building it with j

10条回答
  •  醉梦人生
    2020-11-27 05:21

    I encountered the same issue and resolved it by adding both http and https proxies in the gradle.properties file. It is important to add the https proxy as the gradle-2.10-all.zip is read using https:

    https://services.gradle.org/distributions/gradle-2.10-all.zip

    gradle.properties:

    systemProp.http.proxyHost=
    systemProp.http.proxyPort=
    systemProp.https.proxyHost=
    systemProp.https.proxyPort=
    

提交回复
热议问题