title: gradle error : ERROR: Could not find method implementation() for arguments
body: <p>I'm trying to add Firebase to my chat app in android studio, but all provided <code>build.gradle</code> plugins are not syncing.</p>
  
  <p>I have tried some code below:</p>
  
  <pre><code>classpath 'com.google.gms:google-services:4.2.0' implementation 'com.google.firebase:firebase-core:16.0.7'
  </code></pre>
  
  <p>and then comes </p>
  
  <blockquote>
    <p>ERROR: Could not find method implementation() for arguments
    [com.google.firebase:firebase-core:16.0.7] on object of type
    org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</p>
  </blockquote>