title: Error:(22, 0) Could not find method android() for arguments
body: <p>here's my gradle file</p>
  
  <p>I am getting this error</p>
  
  <blockquote>
    <p>Error:(22, 0) Could not find method android() for arguments</p>
  </blockquote>
  
  <pre><code>allprojects {
  repositories {
      jcenter()
  }
  }
  task clean(type: Delete) {
  delete rootProject.buildDir
  }
  
  android {
  defaultConfig {
  minSdkVersion 26
  targetSdkVersion 26
  }
  productFlavors {
  }
  }
  dependencies {
  }
  </code></pre>