Shyam
Shyam

Reputation: 189

Plugin with id 'com.google.gms.google-services' not found

I am using google services at the very first time in my app(ionic platform). I am following this doc. While building my app, I got the following error message. Please help out. Thank you.

A problem occurred evaluating script.

Plugin with id 'com.google.gms.google-services' not found.

Upvotes: 4

Views: 12074

Answers (2)

eranda.del
eranda.del

Reputation: 2851

Add   classpath com.google.gms:google-services:3.0.0  dependencies at project level build.gradle

Refer the sample block from project level build.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {

        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

Upvotes: 0

Teyam
Teyam

Reputation: 8102

Please add the plugin to your project by updating your top-level build.gradle and your app-level build.gradle files as follows:

  1. Add the dependency to your project-level build.gradle:
classpath 'com.google.gms:google-services:3.0.0'
  1. Add the plugin to your app-level build.gradle:
apply plugin: 'com.google.gms.google-services'

More information regarding this can be found in GCM - Set up a GCM Client App on Android.

And, in addition to that, the guide or workaround given in GitHub - GCMPushPlugin might also help.

Upvotes: 12

Related Questions