title: Plugin with id 'com.google.gms:google-services' not found. Flutter
body: <p>I am new to flutter framework. I am trying to install cloud firestore in flutter but got the problem. Below is my code and gradle files:
  Android/build.gradlew:</p>
  <pre><code>buildscript {
      // ext.kotlin_version = '1.2.31'
      repositories {
          google()
          jcenter()
          maven {
              url &quot;https://maven.google.com&quot;
          }
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:3.2.1'
          classpath 'com.google.gms:google-services:3.2.0'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          maven {
              url &quot;https://maven.google.com&quot;
          }
      }
  }
  
  rootProject.buildDir = '../build'
  subprojects {
      project.buildDir = &quot;${rootProject.buildDir}/${project.name}&quot;
  }
  subprojects {
      project.evaluationDependsOn(':app')
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  <p>App/build.gradle is:</p>
  <pre><code>def localProperties = new Properties()
  def localPropertiesFile = rootProject.file('local.properties')
  if (localPropertiesFile.exists()) {
      localPropertiesFile.withReader('UTF-8') { reader -&gt;
          localProperties.load(reader)
      }
  }
  
  def flutterRoot = localProperties.getProperty('flutter.sdk')
  if (flutterRoot == null) {
      throw new GradleException(&quot;Flutter SDK not found. Define location with flutter.sdk in the local.properties file.&quot;)
  }
  
  def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  if (flutterVersionCode == null) {
      flutterVersionCode = '1'
  }
  
  def flutterVersionName = localProperties.getProperty('flutter.versionName')
  if (flutterVersionName == null) {
      flutterVersionName = '1.0'
  }
  
  apply plugin: 'com.android.application'
  apply from: &quot;$flutterRoot/packages/flutter_tools/gradle/flutter.gradle&quot;
  
  android {
      compileSdkVersion 28
  
      lintOptions {
          disable 'InvalidPackage'
      }
  
      defaultConfig {
          // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
          applicationId &quot;com.example.barcode_app&quot;
          minSdkVersion 16
          targetSdkVersion 28
          versionCode flutterVersionCode.toInteger()
          versionName flutterVersionName
          testInstrumentationRunner &quot;android.support.test.runner.AndroidJUnitRunner&quot;
      }
  
      buildTypes {
          release {
              // TODO: Add your own signing config for the release build.
              // Signing with the debug keys for now, so `flutter run --release` works.
              signingConfig signingConfigs.debug
          }
      }
  }
  
  flutter {
      source '../..'
  }
  
  dependencies {
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  }
  apply plugin: 'com.google.gms:google-services'
  </code></pre>
  <p>After running flutter run -v or build it in android i got the error:
  'ERROR: Plugin with id 'com.google.gms:google-services' not found.'
  <a href="https://i.stack.imgur.com/HheSI.png" rel="noreferrer">enter image description here</a></p>
  <p>I tried to almost all the solution available on stackoverflow and github but the problem is still there.</p>