0

I'm trying to connect Firebase to my project. but when the project is synced I'm getting these errors repeatedly. please help me resolve this issue.

Download https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
Download https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom 
sync failed 47s 272ms Run build 45s 783ms Load build 1s 336ms Configure build 44s 341ms Load projects 83ms rootProject 127ms Configure project : 44s 90ms Apply plugin org.gradle.help-tasks Apply script build.gradle 44s 83ms Resolve dependencies of :classpath 43s 860ms Download dl.google.com/dl/android/maven2/com/google/gms/google-services/…  21s 18ms Download jcenter.bintray.com/com/google/gms/google-services/4.0.1/…    21s 2ms 
zero323
  • 322,348
  • 103
  • 959
  • 935

1 Answers1

0

In your grade file, you need to add google() for repositories like below. If it is already there, you need to move it to up inside repositories.(google() should be there before jcenter()). I also faced the same issue and this is the way that I solved. Could not find play-services-basement.aar

allprojects {

    repositories {
        google()
        jcenter()
    }
  }
PushpikaWan
  • 2,437
  • 3
  • 14
  • 23