title: Could not find com.google.gms:google-services:4.2.3
body: <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li>What went wrong:</li>
  <li>A problem occurred configuring root project 'android'.</li>
  <li>Could not resolve all artifacts for configuration ':classpath'.</li>
  <li>Could not find com.google.gms:google-services:4.2.3.</li>
  </ul>
  <p>This is my android\build.gradle</p>
  <pre><code>buildscript {
          ext.kotlin_version = '1.3.50'
          repositories {
              google()
              jcenter()
          }
      
          dependencies {
              classpath 'com.android.tools.build:gradle:4.0.0'
              classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
              classpath 'com.google.gms:google-services:4.2.3'
          }
      }
      
      allprojects {
          repositories {
              google()
              jcenter()
          }
      }
      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>This my android\app\build.gradle</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 plugin: 'kotlin-android'
  apply from: &quot;$flutterRoot/packages/flutter_tools/gradle/flutter.gradle&quot;
  
  android {
      compileSdkVersion 28
  
      sourceSets {
          main.java.srcDirs += 'src/main/kotlin'
      }
  
      lintOptions {
          disable 'InvalidPackage'
      }
  
      defaultConfig {
          // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
          applicationId &quot;com.example.shop_app&quot;
          minSdkVersion 16
          targetSdkVersion 28
          versionCode flutterVersionCode.toInteger()
          versionName flutterVersionName
  
          multiDexEnabled true
      }
  
      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 {
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version&quot;
      implementation 'com.google.firebase:firebase-analytics:17.2.2'
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  <p>And then i have gotten error</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring root project 'android'.
  &gt; Could not resolve all artifacts for configuration ':classpath'.
     &gt; Could not find com.google.gms:google-services:4.2.3.
       Searched in the following locations:
         - https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.2.3/google-services-4.2.3.pom
         - https://jcenter.bintray.com/com/google/gms/google-services/4.2.3/google-services-4.2.3.pom
       Required by:
           project :
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 5s
  Exception: Gradle task assembleDebug failed with exit code 1
  </code></pre>
  <p>I have stuck on it. Please help me to solve it. Thanks</p>