title: Cordova FCM - Build Error: Failed to apply plugin [id 'com.google.gms.google-services']
body: <p>I have a Cordova app with Android and iOS, and I am trying to add <a href="https://firebase.google.com/docs/android/setup" rel="nofollow">FCM</a> so I can send push notification. I have followed the setup instructions on the site multiple times and continue to get the same build error.</p>
  
  <p>Here is the error I get when I run Cordova build </p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * Where:
  Build file 'C:\Users\Me\workspace\App\platforms\android\build.gradle' line: 326
  
  * What went wrong:
  A problem occurred evaluating root project 'android'.
  &gt; Failed to apply plugin [id 'com.google.gms.google-services']
     &gt; For input string: "+"
  </code></pre>
  
  <p>This is what is on the last line of the build.gradle file <code>apply plugin: 'com.google.gms.google-services'</code>, which is what the setup instruction says to do.</p>
  
  <p>I have made an account, got my package name from <code>AndroidManifest.xml</code>, then added the <code>google-services.json</code> to the main in the Android project, and then added the 3 lines in the <code>build.gradle</code> file, but I continue to get this error.</p>
  
  <p>What am I doing wrong? Thanks for the help.</p>