I am trying to add firebase to my project, I am following the steps from firebase documentation https://firebase.google.com/docs/android/setup?authuser=0 help please! I am getting this error when I try to sync gradle.
Could not find com.google.gms:google-services:4.1.0. Searched in the following locations: https://repo.maven.apache.org/maven2/com/google/gms/google-services/4.1.0/google-services-4.1.0.pom https://repo.maven.apache.org/maven2/com/google/gms/google-services/4.1.0/google-services-4.1.0.jar
why is that happening, I visited this link https://repo.maven.apache.org/maven2/com/google/gms/google-services/ to be sure the repository has that .pom, or .jar, but I see this
buildscript {
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
....
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(":mupdf")
implementation 'org.altbeacon:android-beacon-library:2.+@aar'
implementation 'com.android.support:appcompat-v7:22.2.1'
implementation 'com.journeyapps:zxing-android-embedded:3.0.2@aar'
implementation 'com.google.zxing:core:3.2.0'
implementation 'com.android.support:support-v4:22.2.1'
implementation 'com.android.support:design:22.2.1'
implementation 'com.weigan:loopView:0.1.2'
implementation 'com.google.firebase:firebase-core:16.0.5'
// Add the In-App Messaging depencency:
implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.5'
} apply plugin: 'com.google.gms.google-services'