title: Could not find method classpath() for arguments [com.android.tools.build:gradle:3.4.2]
body: <p>This is my <code>build.gradle</code> file</p>
  
  <pre><code>apply plugin: 'java'
  
  repositories {
      jcenter()
      google()
      dependencies {
          classpath 'com.android.tools.build:gradle:3.4.2'
      }
  }
  
  dependencies {
      // The production code uses the SLF4J logging API at compile time
      compile 'org.slf4j:slf4j-api:1.7.25'
      testCompile 'junit:junit:4.12'
  }
  </code></pre>
  
  <p>This is the error I get when I run <code>gradle build</code></p>
  
  <blockquote>
    <p>Could not find method classpath() for arguments [com.android.tools.build:gradle:3.4.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</p>
  </blockquote>
  
  <p>I have multi module project, here is my <code>settings.gradle</code></p>
  
  <pre><code>include 'module-1'
  include 'module-2'
  include 'module-3'
  include 'module-4:java'
  include 'module-5'
  
  rootProject.name = 'my-root-project'
  </code></pre>
  
  <p>What I am trying to do is have sub module use plugin <code>com.android.application</code>; here is build.gradle for <code>plugin1</code> which is Android app project</p>
  
  <pre><code>apply plugin: 'com.android.application'
  // ...
  </code></pre>