title: Could not resolve com.android.tools.build:gradle:3.3.2
body: <p>I was trying to add firebase auth to my android project but getting this error.
  I have tried adding 'com.google.firebase:firebase-core:16.0.3' too but its taking more than 40 mins and still not syncing the gradle.</p>
  
  <p>This is build.gradle file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'com.google.gms.google-services'
  
  android {
      compileSdkVersion 28
      defaultConfig {
          applicationId "myaid.startup"
          minSdkVersion 21
          targetSdkVersion 28
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
      implementation 'com.google.firebase:firebase-auth:16.0.3'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  }
  </code></pre>
  
  <p>This is app.gradle file:</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.3.2'
          classpath 'com.google.gms:google-services:4.1.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>This is the error:</p>
  
  <blockquote>
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong: A problem occurred configuring root project 'MyAid'.</p>
    
    <blockquote>
      <p>Could not resolve all artifacts for configuration ':classpath'.
      Could not resolve com.android.tools.build:gradle:3.3.2.
       Required by:
           project :
      Could not resolve com.android.tools.build:gradle:3.3.2.
      Could not get resource '<a href="https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom</a>'.
      Could not GET '<a href="https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom</a>'.
      Connection reset
      Could not resolve com.android.tools.build:gradle:3.3.2.
      Could not get resource '<a href="https://jcenter.bintray.com/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom" rel="nofollow noreferrer">https://jcenter.bintray.com/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom</a>'.
      Could not GET '<a href="https://jcenter.bintray.com/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom" rel="nofollow noreferrer">https://jcenter.bintray.com/com/android/tools/build/gradle/3.3.2/gradle-3.3.2.pom</a>'.
      Connection reset</p>
    </blockquote></li>
    <li><p>Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p></li>
    <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
    </ul>
    
    <p>CONFIGURE FAILED in 2m 13s ERROR: Connection reset</p>
  </blockquote>