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

后端 未结 10 824
萌比男神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:10

    If you are using a proxy server then you might have to set the JVM parameters for your proxy.

    Settings -> Gradle -> Gradle VM options: -Dhttp.proxyHost=1.2.3.4 -Dhttp.proxyPort=8080 Settings -> Compiler -> VM options: -Dhttp.proxyHost=1.2.3.4 -Dhttp.proxyPort=8080

    I had to restart the IDE for these settings to take effect.

提交回复
热议问题