title: "jcenter.bintray.com:443 failed to respond" error in Android Studio
body: <p>I am trying to build a project in Android Studio, and Android's default build tool, Gradle, ALWAYS gives me an error when it attempts to build my project. The following is the result of using the "gradlew build" command:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring root project 'MyFirstApp'.
  &gt; Could not resolve all dependencies for configuration ':classpath'.
     &gt; Could not resolve com.android.tools.build:gradle:2.1.3.
       Required by:
           :MyFirstApp:unspecified
        &gt; Could not resolve com.android.tools.build:gradle:2.1.3.
           &gt; Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/
  gradle/2.1.3/gradle-2.1.3.pom'.
              &gt; Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle
  /2.1.3/gradle-2.1.3.pom'.
                 &gt; jcenter.bintray.com:443 failed to respond
  </code></pre>
  
  <p>I have tried using an http proxy, vpn, turning off my firewall, deleting the cache in the .gradle foler, and even completely reinstalling Android Studio, but nothing seems to be working.</p>
  
  <p>I am new to Android development, so any information is appreciated!</p>
  
  <p>Here is the error when the proxy is implemented:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring root project 'MyFirstApp'.
  &gt; Could not resolve all dependencies for configuration ':classpath'.
     &gt; Could not resolve com.android.tools.build:gradle:2.1.3.
       Required by:
           :MyFirstApp:unspecified
        &gt; Could not resolve com.android.tools.build:gradle:2.1.3.
           &gt; Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/
  gradle/2.1.3/gradle-2.1.3.pom'.
              &gt; Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle
  /2.1.3/gradle-2.1.3.pom'.
                 &gt; Remote host closed connection during handshake
  </code></pre>
  
  <p>I was able to add the HTTPS certificate to the keystore for jcenter.bintray.com, but now I am getting a JVM error whenever I start android studio:
  <a href="http://i.stack.imgur.com/i0274.jpg" rel="noreferrer">Android Studio JVM Error</a></p>
  
  <p>I have checked my environment variables, tried changing them, and the error persists. My java environment variables are set as follows:</p>
  
  <pre><code>User Variables:
      PATH: %JAVA_HOME%\bin
      JAVA_HOME: C:\Program Files\Java\jdk1.8.0_101
  
  System Variables:
      CLASSPATH: C:\Program Files\Java\jre1.8.0_101
      JAVA_HOME: C:\Program Files\Java\jdk1.8.0_101\bin
  </code></pre>
  
  <p>EDIT:
  After setting my Java home path in the gradle.properties file, I am now getting a different error when I attempt to build my project.</p>
  
  <pre><code>Downloading https://services.gradle.org/distributions/gradle-2.14.1-all.zip
  
  Exception in thread "main" java.net.SocketException: Software caused connection abort: recv failed
  </code></pre>
  
  <p>EDIT:
  I just wanted to let everyone know that I figured it out! Apparently my parents put some insanely powerful parental control software on my computer a few years ago and I forgot it was there. After uninstalling, Android Studio now works flawlessly. The software basically blocked all unknown traffic coming in and out of most of the ports. Anyway, thank you to everyone for the help. I can finally start developing!</p>