title: ERROR: Could not find com.android.tools.build:gradle:3.4.1
body: <p>I am trying to update my Android project. </p>
  
  <p>I initially got this error:</p>
  
  <blockquote>
    <p>ERROR: Gradle DSL method not found: 'classpath()'
    Possible causes:
    The project 'xxx' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
    Upgrade plugin to version 3.4.1 and sync project</p>
  </blockquote>
  
  <p>So I tried this in my app's <code>build.gradle</code>:</p>
  
  <pre><code>buildscript {
      repositories {
          maven { url 'https://maven.fabric.io/public' }
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:3.4.1'
          classpath 'io.fabric.tools:gradle:1.29.0'
      }
  }
  </code></pre>
  
  <p>But now I'm getting this error:</p>
  
  <blockquote>
    <p>ERROR: Could not find com.android.tools.build:gradle:3.4.1.</p>
  </blockquote>
  
  <p>What to do? Thanks for your help.</p>