title: How to fix "Could not find method" error?
body: <p>I'm working on home work on Android studio, every thing was Ok, and I shut down my pc till next day, when i opened android studio i found this error message </p>
  
  <blockquote>
    <p>ERROR: Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</p>
  </blockquote>
  
  <pre><code>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      testImplementation 'junit:junit:4.13-beta-3' 
      //noinspection GradleCompatible
      implementation 'com.android.support:appcompat-v7:26.0.0-alpha1'
  
      // Displaying images
      implementation 'com.github.bumptech.glide:glide:4.9.0'
      implementation 'com.google.firebase:firebase-core:16.0.9'
  
      // Realtime database
      implementation 'com.google.firebase:firebase-database:17.0.0'
      implementation 'com.android.support:support-v4:28.0.0'
  }
  </code></pre>