title: Could not find com.android.tools:r8:1.5.25
body: <p>A problem occurred configuring root project 'android'.</p>
  <ul>
  <li>What went wrong:
  A problem occurred configuring root project 'android'.</li>
  </ul>
  <blockquote>
  <p>Could not resolve all artifacts for configuration ':classpath'.
  Could not download r8-1.6.84.jar (com.android.tools:r8:1.6.84)
  &gt; Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/r8/1.6.84/r8-1.6.84.jar'.
  &gt; Premature end of Content-Length delimited message body (expected: 4,257,995; received: 2,097,136)</p>
  </blockquote>
  <pre><code>buildscript {
      ext.kotlin_version = '1.3.50'
      repositories {
          google()
          jcenter()
          maven {
              url 'http://storage.googleapis.com/r8-releases/raw'
          }
      }
  
      dependencies {
           classpath 'com.android.tools:r8:1.6.84'
        //  classpath 'com.android.tools:r8:1.4.57'
          classpath 'com.google.gms:google-services:4.3.3'
          classpath 'com.android.tools.build:gradle:4.0.0'
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
          classpath 'com.android.tools.build:gradle:4.0.0'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  rootProject.buildDir = '../build'
  subprojects {
      project.buildDir = &quot;${rootProject.buildDir}/${project.name}&quot;
  }
  subprojects {
      project.evaluationDependsOn(':app')
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  subprojects {
      project.buildDir = &quot;${rootProject.buildDir}/${project.name}&quot;
  
      project.evaluationDependsOn(':app')
  
      afterEvaluate {project -&gt;
          if (project.hasProperty(&quot;android&quot;) &amp;&amp; project.property(&quot;android&quot;).compileSdkVersion.equals(&quot;android-R&quot;)) {
              android {
                  compileSdkVersion 30
              }
          }
      }
  }
  </code></pre>
  <p>Full Error message here :</p>
  <ul>
  <li>What went wrong:
  A problem occurred configuring root project 'android'.</li>
  </ul>
  <blockquote>
  <p>Could not resolve all artifacts for configuration ':classpath'.
  Could not download r8-1.6.84.jar (com.android.tools:r8:1.6.84)
  &gt; Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/r8/1.6.84/r8-1.6.84.jar'.
  &gt; Premature end of Content-Length delimited message body (expected: 4,257,995; received: 2,097,136)
  Could not download bundletool-0.13.2.jar (com.android.tools.build:bundletool:0.13.2)
  &gt; Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.13.2/bundletool-0.13.2.jar'.
  &gt; Premature end of Content-Length delimited message body (expected: 32,326,603; received: 2,359,280)
  Could not download builder-4.0.0.jar (com.android.tools.build:builder:4.0.0)
  &gt; Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/4.0.0/builder-4.0.0.jar'.
  &gt; Premature end of Content-Length delimited message body (expected: 9,052,896; received: 4,456,416)</p>
  </blockquote>
  <ul>
  <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>BUILD FAILED in 13m 48s
  Exception: Gradle task assembleDebug failed with exit code 1</p>