title: Could not find method api() for arguments [directory 'libs']
body: <p>Open File</p>
  
  <p>This is my gradle file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
      android {
          compileSdkVersion 27
          buildToolsVersion "27.0.1"
          defaultConfig {
              applicationId "com.landdrops.cricketfantacy.androidbottom"
              minSdkVersion 21
              targetSdkVersion 27
              versionCode 1
              versionName "1.0"
              testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
          }
          buildTypes {
              release {
                  minifyEnabled false
                  proguardFiles getDefaultProguardFile('proguard android.txt'), 'proguard-rules.pro'
              }
          }
      }
  
      dependencies {
          implementation fileTree(include: ['*.jar'], dir: 'libs')
          implementation 'com.android.support:appcompat-v7:27.0.1'
          implementation 'com.android.support:design:27.0.1'
          implementation 'com.android.support.constraint:constraint-layout:1.0.2'
          testImplementation 'junit:junit:4.12'
          androidTestImplementation 'com.android.support.test.runner:1.0.2'
          androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
      }
  </code></pre>
  
  <p>I am getting </p>
  
  <blockquote>
    <p>Error:(23, 0) Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
    Open File</p>
  </blockquote>