gradle - Could not find method google() for arguments [] on repository container

AndroidAndroid StudioGradleAndroid Gradle-Plugin

Android Problem Overview


My gradle file

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

   repositories {
       google()
       jcenter()
   }
   dependencies {
       classpath 'com.android.tools.build:gradle:3.0.0'
    

       // NOTE: Do not place your application dependencies here; they belong
       // in the individual module build.gradle files
   }
}

 allprojects {
   repositories {
       google()
       jcenter()
   }
 }

 task clean(type: Delete) {
   delete rootProject.buildDir
  }

Android Solutions


Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionavckView Question on Stackoverflow