title: Gradle Connection timed out
body: <p>after updating android studio 2.3 to 3.0 i got lots of errors so many work i done it but didn't work </p>
  
  <p>Error:Could not resolve all files for configuration ':app:debugCompileClasspath'.</p>
  
  <blockquote>
    <p>Could not resolve com.android.support:appcompat-v7:26.1.0.
      Required by:
          project :app
    Could not resolve com.android.support:appcompat-v7:26.1.0.
    Could not parse POM <a href="https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom" rel="noreferrer">https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom</a>
    Already seen doctype.
    Could not resolve com.android.support:appcompat-v7:26.1.0.
    Could not get resource '<a href="https://jcenter.bintray.com/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom" rel="noreferrer">https://jcenter.bintray.com/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom</a>'.
    Could not HEAD '<a href="https://jcenter.bintray.com/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom" rel="noreferrer">https://jcenter.bintray.com/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom</a>'.
    Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect</p>
  </blockquote>
  
  <p>gradle wrapper properties</p>
  
  <pre><code>#Mon Nov 06 17:20:27 IRST 2017
  distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 
  </code></pre>
  
  <p>my gradle  (module app)</p>
  
  <pre><code> apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 26
      defaultConfig {
          applicationId "curlpagetutorial.example.com.mydd"
          minSdkVersion 19
          targetSdkVersion 26
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:26.1.0'
      implementation 'com.android.support.constraint:constraint-layout:1.0.2'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.1'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  }
  </code></pre>
  
  <p>gradle</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
  
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.0.0'
  
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>New errors</p>
  
  <p>Required by:
      project :app</p>
  
  <blockquote>
    <p>Could not resolve com.android.support:appcompat-v7:26.1.0.
    Could not parse POM <a href="https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom" rel="noreferrer">https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom</a>
    Already seen doctype.</p>
    
    <p>Could not resolve com.android.support:appcompat-v7:26.1.0.</p>
    
    <p>Could not resolve com.android.support.test:runner:1.0.1.</p>
    
    <p>Could not resolve com.android.support.test.espresso:espresso-core:3.0.1.</p>
  </blockquote>
  
  <p>I'm stuck here for long time please help me </p>