Build Error after using FCM plugin


#1

Build error after using FCM plugin. Any Solution please…

FAILURE: Build failed with an exception.

  • Where:
    Script ‘C:\Users\Windows 7\xxxx\platforms\android\cordova-plugin-fcm\android-FCMPlugin.gradle’ line: 13

  • What went wrong:
    A problem occurred evaluating script.

Failed to apply plugin [class ‘com.google.gms.googleservices.GoogleServicesPlugin’]
For input string: “+”

Below is the FCMPlugin.gradle:

buildscript {
	repositories {
            jcenter()
			mavenLocal()
        }
    dependencies {
        classpath 'com.android.tools.build:gradle:+'
        classpath 'com.google.gms:google-services:3.0.0'
    }
}
// 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
//-------Line 13-----//
apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
//------Line 13-----//