Gradle Sync fails in Android studio 1.3

Recently I updated Android studio to version 1.3, and then it fails gradle sync. Error message is something like,

It seems that https proxy server was not working correctly, even if I’m setting proxy server in [File] → [Settings…] → [Appearance & Behavior] → [HTTP Proxy]. 

Solution

 You can set http proxy server & https proxy server manually in gradle.properties file. Add below to your gradle.properties (Project Properties) file.

Replace xxx.xxx.xxx.xxx with IP address of your proxy server & 8080 with your proxy’s port number.

After that, try [Build] → [Clean Project] to re-execute Gradle Sync.

Reference

 

Sponsored Links

Leave a Reply

Your email address will not be published.