gradle sync error android studio
<p>I was trying to create some android sample app using android studio and I came across a gradle sync error.</p>

<p>It says unknown host for <a href="http://jcenter.bintray.com" rel="nofollow">jcenter.bintray.com</a> and configure proxy.</p>

<p>But when I try to access it using browser url is accessible. I also tried to check connection in android studio > setting > system settings > http proxy > check connection. </p>

<p>It shows connection successful. So the error occurs only when it builds. what could be the reason?</p>

<p>build.gradle</p>

<pre><code>buildscript {
repositories {
    jcenter { url "http://jcenter.bintray.com/" }
}

dependencies {
    classpath 'com.android.tools.build:gradle:2.2.1'
}
}

allprojects {
}
</code></pre>