I got the solution.
goto https://console.firebase.google.com/
and add new project.
The right solution is to build regular flavor.
in build.gradle > dependencies > classpath 'com.google.gms:google-services:3.0.0'
example:
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'io.fabric.tools:gradle:1.26.1'
}
@ginppian your comment doesn't seem to have anything to do with the topic. You should probably add some information to clarify what exactly you wanted to say.
Excuse me, in my case I got:
could not find com.google.gms:google-services:4.2.0.
And
The Google Services Plugin cannot function without it. Searched Location: ..\..google-services.json
I changed Build Variants from googleDebug to regularDebug and i changed too the 'classpath' from 'com.google.gms: google-services: 4.2.0' to 3.0.0. Work for me.
When I run this project . It is getting Build Faild