Hi guys I’m getting this error when I try to buy building an app for android, I think the error is related to FCM plugin. However, I was using the same 2 days ago and it was working fine. I didn’t change anything and now i’m getting this error upon trying to build.
Did anyone have this error before, or knows how to solve it?
* 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
https://bintray.com/android/android-tools/com.google.gms.google-services/)
or updating the version of com.google.android.gms to 9.0.0.
Worth to mention it builds normal on ios without errors.
2 Likes
This BS is happening to me too right now, right as I was about to build for Google Play submission. Have you gotten anywhere?
Nope, couldn’t reach any solution yet, and it’s frustrating… It’s most probably related to this update https://bintray.com/android/android-tools/com.google.gms.google-services/3.1.0?versionPath=%2Fandroid%2Fandroid-tools%2Fcom.google.gms.google-services%2F3.1.0
which just got released 16th of May…
Have you reached any solution???
@thedore17 check this link
I was facing issue after adding plugin : cordova-plugin-geofence
following was the error I come across for command “ionic cordova run android --device” :-
Found com.google.android.gms:play-services-location:+, but version 10.+ is needed for the google-services plugin.
:processDebugGoogleServices FAILED
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) 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.
BUILD FAILED
Total time: 1.796 secs
Error: /Users/platforms/android/gradlew: Command failed with exit code 1 Error output:
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) 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] An error occurred while running subprocess cordova.
cordova run android --device exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
$ ionic cordova run android --device
===>>>> Finally I fixed this issue by doing changes as follows
-
In file build.gradle :
Replace
compile “com.google.android.gms:play-services-location:+”
with
compile “com.google.android.gms:play-services-location:10.+”
-
In file /platforms/android/project.properties :
Replace
cordova.system.library.6=com.google.android.gms:play-services-location:+
with
cordova.system.library.6=com.google.android.gms:play-services-location:10.+
3.In File plugins/cordova-plugin-geofence/plugin.xml
Replace
< framework src=“com.google.android.gms:play-services-location:+” />
with
< framework src=“com.google.android.gms:play-services-location:10.+” />
Hope This Helps