# Error while implementing FCM in ionic v1

**URL:** <https://forum.ionicframework.com/t/error-while-implementing-fcm-in-ionic-v1/97737>\
**Category:** ionic-v1\
**Created:** [July 11, 2017, 1:19pm UTC](https://forum.ionicframework.com/t/error-while-implementing-fcm-in-ionic-v1/97737 "2017-07-11T13:19:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mylearing](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mylearing](https://forum.ionicframework.com/u/mylearing)\
**Post date:** [July 11, 2017, 1:19pm UTC](https://forum.ionicframework.com/t/error-while-implementing-fcm-in-ionic-v1/97737/1 "2017-07-11T13:19:47Z")

</div>

Hi in my Cordova project(Ionic v1) I’m using a background-location plugin for location tracking. The plugin working fine when I run alone but I also need the Cordova plugin cordova-plugin-fcm for GCM. Now when I run my project I’m getting this error.

/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
BUILD FAILED

Total time: 1 mins 28.311 secs  
Execution failed for task ‘:processDebugGoogleServices’.

> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at [Service End for Bintray, JCenter, GoCenter, and ChartCenter | JFrog](https://bintray.com/android/android-tools/com.google.gms.google-services/)) or updating the version of com.google.android.gms to 10.+.

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  
Error: cmd: Command failed with exit code 1 Error output:  
Note: Some input files use or override a deprecated API.  
Note: Recompile with -Xlint:deprecation for details.  
Note: Some input files use or override a deprecated API.  
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:processDebugGoogleServices’.

> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at [Service End for Bintray, JCenter, GoCenter, and ChartCenter | JFrog](https://bintray.com/android/android-tools/com.google.gms.google-services/)) or updating the version of com.google.android.gms to 10.+.

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

[ERROR] Cordova encountered an error.  
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova run android (exit code 1).

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/

Installed plugins
