Ionic :app:processDebugGoogleServices (Version conflict)


I installed push plugin on ionic app and got this build fail

Found firebase-messaging:11.6.2, but version 11.0.4 is needed for the google-services plugin.
:app:processDebugGoogleServices FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at or updating the version of to 11.0.4.

my build.gradle (module:app)

dependencies {
    implementation fileTree(dir: 'libs', include: '*.jar')
    implementation(project(path: ":CordovaLib"))
    compile ""
    compile ""
    compile ""
    compile ""
    compile ""
    compile "me.leolin:ShortcutBadger:1.1.17@aar"
    compile ""


change the version of firebase to 11.0.4


make the version of play-services as firebase


Change the setting inside the file.
Changing it in the build.gradle (module:app) does not help as this file gets overridden everytime you build your project.

I hope this helps someone else. :grinning: