Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 544
Shyam Avatar asked Dec 15 '22 04:12

Shyam


1 Answers

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.

like image 199
Teyam Avatar answered Dec 20 '22 16:12

Teyam