I have got this error :
org.gradle.api.GradleException: File google-services.json is missing. The
Google Services Plugin cannot function without it.
I hope someone help me, I tried everything nearly ,but I failed!!
Note: Make sure that I have downloaded "google-services.json",then putted it in MyProjectName/app
This is my project's build gradle(project):
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.google.gms:google-services:3.2.0'
classpath 'com.google.firebase:firebase-plugins:1.0.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://maven.google.com"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
In the Firebase Console you have to navigate to your Project Settings and select google-services.json in your connected Android app.
You have to place this file into your app
directory in your project directory.