Build error in Ionic app which uses Google Firebase

Hi,
I try to run my app in an Andriod Emulator (using Android Studio). But this command ionic cordova run android -lc gives me the following error.

FAILURE: Build failed with an exception.

* Where:
Script 'C:\[My Project]\platforms\android\cordova-plugin-firebase\starter-build.gradle' line: 27

* What went wrong:
A problem occurred evaluating project ':app'.
> Plugin with id 'com.google.gms.google-services' not found.

Here is the gradle file:

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:+'
        classpath 'com.google.gms:google-services:4.1.0'
    }
}
repositories {
    mavenCentral()
    maven {
        url "https://maven.google.com"
    }
}

dependencies {
    compile 'me.leolin:ShortcutBadger:1.1.4@aar'
    compile 'com.google.firebase:firebase-auth:+'
    compile('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
       transitive = true
    }
}

cdvPluginPostBuildExtras.add({
    apply plugin: 'com.google.gms.google-services'
})

(ionic version 4.0.2)

Any luck with this, I have the same error

Have you downloaded the google-services.json file from Firebase and copied it into root of your project folder?

@semgovaert yes i have google-servise.json

no :frowning: unfortunately I hit the wall on this