title: Android Studio Could not resolve all artifacts for configuration ':classpath'
body: <p>I'm trying to run Android Studio on windows 10. Currently I have the most up to date version of Android Studio. Every time I try to open a new project or open an existing project, the gradle fails to build always displaying connection reset error message. This is the error message it displays.</p>
  <pre><code>&gt; Could not resolve all artifacts for configuration ':classpath'.
     &gt; Could not resolve com.android.tools.build:gradle:4.1.2.
       Required by:
           project :
        &gt; Could not resolve com.android.tools.build:gradle:4.1.2.
           &gt; Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.2/gradle-4.1.2.pom'.
              &gt; Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.2/gradle-4.1.2.pom'.
                 &gt; Connection reset
        &gt; Could not resolve com.android.tools.build:gradle:4.1.2.
           &gt; Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.1.2/gradle-4.1.2.pom'.
              &gt; Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.1.2/gradle-4.1.2.pom'.
                 &gt; Connection reset
  </code></pre>
  <p>I currently have the file gradle.build set up like this because this is how comes automatically for me</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 &quot;com.android.tools.build:gradle:4.1.2&quot;
  
          // 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>And I have the gradle-wrapper.properties file set up like this</p>
  <pre><code>distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
  </code></pre>
  <p>I have tried changing the line</p>
  <pre><code>distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
  </code></pre>
  <p>to</p>
  <pre><code>distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
  </code></pre>
  <p>but that didn't change anything. I tried seeing if it was an Internet connection problem and nothing changed. I'm not sure what else there is to try.</p>