title: Could not find method mavenCentral()
body: <p>I think I miss something about  <code>mavenCentral()</code>
  thanks a lot </p>
  
  <p>that's error message : </p>
  
  <p><strong>Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method mavenCentral() for arguments [] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</strong></p>
  
  <p>I also add to <code>buildscript</code> </p>
  
  <pre><code> maven {
              url 'https://maven.google.com/'
          }
  </code></pre>
  
  <p>but same error again.</p>
  
  <p><a href="https://i.stack.imgur.com/zByeo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zByeo.png" alt="enter image description here"></a></p>