title: FCMPlugin build fail due to version conflict with google gms services
body: <p>I'm using this with ionic 2 on Windows for Android. When I add cordova-plugin-fcm plugin, I cannot build the project anymore. Here is the error that I'm getting:</p>
  
  <pre><code>BUILD FAILED                                                                                     
  
  Total time: 4.697 secs                                                                           
  
  Error: cmd: Command failed with exit code 1 Error output:                                        
  FAILURE: Build failed with an exception.                                                         
  
  * What went wrong:                                                                               
  Execution failed for task ':processDebugGoogleServices'.                                         
  &gt; Please fix the version conflict either by updating the version of the google-services plugin (i
  nformation about the latest version is available at https://bintray.com/android/android-tools/com
  .google.gms.google-services/) or updating the version of com.google.android.gms to 9.2.0.        
  
  * Try:                                                                                           
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get mor
  e log output.                                                                                    
  </code></pre>
  
  <p>Below is a snippet of my config.xml:</p>
  
  <pre><code> &lt;plugin name="cordova-plugin-console" spec="~1.0.3"/&gt;
    &lt;plugin name="cordova-plugin-facebook4" spec="~1.7.3"&gt;
      &lt;variable name="APP_ID" value="XXX"/&gt;
      &lt;variable name="APP_NAME" value="XXX"/&gt;
    &lt;/plugin&gt;
    &lt;plugin name="cordova-plugin-whitelist" spec="~1.2.2"/&gt;
    &lt;plugin name="cordova-plugin-statusbar" spec="~2.1.3"/&gt;
    &lt;plugin name="cordova-plugin-splashscreen" spec="~3.2.2"/&gt;
    &lt;plugin name="ionic-plugin-keyboard" spec="~2.2.1"/&gt;
    &lt;plugin name="cordova-plugin-camera"/&gt;
    &lt;plugin name="cordova-plugin-geolocation" spec="https://github.com/apache/cordova-plugin-geolocation"/&gt;
    &lt;plugin name="cordova-plugin-googlemaps" spec="https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps"&gt;
      &lt;variable name="API_KEY_FOR_ANDROID" value="XXXX"/&gt;
      &lt;variable name="API_KEY_FOR_IOS" value="XXXX"/&gt;
    &lt;/plugin&gt;
    &lt;plugin name="cordova-plugin-file-transfer" spec="~1.5.1"/&gt;
    &lt;plugin name="cordova-plugin-file" spec="~4.2.0"/&gt;
    &lt;plugin name="cordova-plugin-device" spec="~1.1.2"/&gt;
  </code></pre>
  
  <p>I have read <a href="https://stackoverflow.com/questions/38127053/google-play-services-gcm-9-2-0-asks-to-update-back-to-9-0-0">this</a> and <a href="https://github.com/fechanique/cordova-plugin-fcm/issues/7" rel="nofollow noreferrer">this related</a> posts which suggest adding this line to build.gradle (which is created automatically by ionic):</p>
  
  <blockquote>
    <p><code>apply plugin: 'com.google.gms.google-services'</code></p>
  </blockquote>
  
  <p>I have tried adding it to build-extras.gradle with no luck.</p>
  
  <p>In my build.graddle, I see this line:</p>
  
  <pre><code>// PLUGIN GRADLE EXTENSIONS START
  apply from: "cordova-plugin-fcm/upfront-FCMPlugin.gradle"
  // PLUGIN GRADLE EXTENSIONS END
  </code></pre>
  
  <p>And also these lines:</p>
  
  <pre><code>dependencies {
      compile fileTree(dir: 'libs', include: '*.jar')
      // SUB-PROJECT DEPENDENCIES START
      debugCompile project(path: "CordovaLib", configuration: "debug")
      releaseCompile project(path: "CordovaLib", configuration: "release")
      compile "com.facebook.android:facebook-android-sdk:4.14.+"
      compile "com.google.android.gms:play-services-maps:+"
      compile "com.google.android.gms:play-services-location:+"
      // SUB-PROJECT DEPENDENCIES END
  }
  </code></pre>
  
  <p>What am I missing and how can I fix this issue?</p>