fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
623 stars 997 forks source link

Ionic Android : Error of version conflict of gcm services while adding FCM plugin #318

Open Avishaidev opened 7 years ago

Avishaidev commented 7 years ago

Please change file "FCMPlugin.gradle" to:

buildscript { repositories { jcenter() mavenLocal() } dependencies { classpath 'com.android.tools.build:gradle:+' classpath 'com.google.gms:google-services:3.0.0' // change this line } } // apply plugin: 'com.google.gms.google-services' // class must be used instead of id(string) to be able to apply plugin from non-root gradle file apply plugin: com.google.gms.googleservices.GoogleServicesPlugin

michaelpeterlee commented 7 years ago

Thanks @Avishaidev. This bug caused me to update my Android SDK/Tools to no-avail, your fix is all that is required.

asaklex commented 7 years ago

I have the same problem