Arseniy Arseniy - 1 year ago 117
Android Question

AndroidStudio gradle proxy

I've tried to run

But It's failing on boot with

Failed to import Gradle project: Connection timed out: connect

I found solution here

But I can't find how to set this properties in
Android Studio

Setting them in
doesn't help.

Answer Source

In Android Studio -> Preferences -> Gradle, pass the proxy details as VM options.

Gradle VM Options -Dhttp.proxyPort=8080 etc.

*In 0.8.6 Beta Gradle is under File->Settings (Ctrl+Alt+S, on windows)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download