Gradle Sync Connection Timeout
<p>I often get the following error while trying to sync gradle</p>

<blockquote>
  <p>Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in ide or gradle.</p>
</blockquote>

<p>Sometimes that i don't get the error, gradle sync takes more than 1 hour</p>