title: A problem occurred configuring root project 'android' When building the gradle both VSCode and Android Studio (Flutter)
body: <p>Today I started learning Flutter and successfully downloaded everything. But when I run my app the Debugger (Both <code>VSCode</code> and <code>Android Studio</code>) give me this error.</p>
  
  <pre><code>Launching lib\main.dart on sdk gphone x86 in debug mode...
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring root project 'android'.
  &gt; Could not resolve all artifacts for configuration ':classpath'.
     &gt; Could not download builder.jar (com.android.tools.build:builder:3.5.0)
        &gt; Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.5.0/builder-3.5.0.jar'.
           &gt; Premature end of Content-Length delimited message body (expected: 8174407; received: 4456416
     &gt; Could not download bundletool.jar (com.android.tools.build:bundletool:0.9.0)
        &gt; Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.9.0/bundletool-0.9.0.jar'.
           &gt; Premature end of Content-Length delimited message body (expected: 5248142; received: 4456416
  
  * 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.
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 21m 37s
  Gradle task assembleDebug failed with exit code 1
  Exited (sigterm)
  
  </code></pre>
  
  <p>And this is <code>build.gradle</code></p>
  
  <pre><code>buildscript {
      ext.kotlin_version = '1.3.50'
      repositories {
          google()
          jcenter()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:3.5.0'
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  rootProject.buildDir = '../build'
  subprojects {
      project.buildDir = "${rootProject.buildDir}/${project.name}"
  }
  subprojects {
      project.evaluationDependsOn(':app')
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  
  
  </code></pre>
  
  <p>Any help would be much appreciated since I'm trying to solve this issue for 6 hours! </p>
  
  <p>Note:- This is my first app ever in Flutter and in Android Studio, VSCode</p>