-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please fix the version conflict either by updating the version of the google-services plugin #21
Comments
This most likely cause it that another plugin in your project has specified a specific version of the Google Play Services library (similar to #8). Plugins that do so will cause errors to be raised when another plugin specifies a different version of the library. For that reason, this plugin specifies the latest version of the Google Play Services library. If all plugins did this, there would be no conflict. I suggest looking at plugin.xml files in the other plugins in your project and figuring out which one is pinning the version of Google Play Services. Then you can work around by, for example, forking that plugin to unpin the library version. |
I am complete noob about how plugins work in cordova. This is my plugin list: I think possible problem is in FCMPlugin but its plugin.xml does not contain any "com.google.android.gms" phrases. |
The FCMPlugin uses a gradle file to specify v9.2.0 of firebase library which in turn specifies v9.2.0 of Google Play Services. In this case, your quickest fix might be to hack (fork) this plugin to to specify in v9.2.0 the plugin.xml, which would resolve the conflict. You'd then need to remove the existing plugin from the project and re-add this modified version:
Or you could manually fix it in the Android project by editing
|
I changed line in build.gradle from Cordova before build keeps changing it to previous state with + char Also tried first solution, nothing happened again. Here is mine build.gradle: build.gradle.zip |
Just to clarify, editing 'plugins/cordova-plugin-request-location-accuracy/plugin.xml` will do no good. You need to either:
OR
|
Ok, tried your first solution. But cordova can't resolve dependencies. Do I have to install it manually ? |
You'll have to remove/re-add the FCM plugin as well to get it to re-add it's gradle stuff |
Removal and reinstall of cordova-plugin-fcm plugin not helped. I tried to install clean version of your plugin |
Try cloning and building the example project to verify your build environment has the necessary prerequisites installed and configured. |
Reopen if still an issue |
Hi, Error:Execution failed for task ':app:transformClassesWithJarMergingForB2bpratapefoodsDebug'.
|
Any solution plz notify on my mail |
you might have phonegap-plugin-push and cordova-plugin-fcm and both are using different verison. |
As a workaround for build issues caused by different versions of the Play Services library specified by different plugins, you can install cordova-android-play-services-gradle-release into the project. This will override any versions set by other plugins and align them to be the same. The published master branch defaults to the latest release (currently v11):
If you need another version (e.g v9), install from the relevant git branch:
|
I am also getting below issue. Error:Execution failed for task ':processDebugGoogleServices'.
I have also done the changes in plugin.xml. In my project I have to use 2 plugins fcm and location accuracy. Below is my gradle file: /*
*/ apply plugin: 'com.android.application' buildscript {
} // Allow plugins to declare Maven dependencies via build-extras.gradle. task wrapper(type: Wrapper) { // Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties.
} // PLUGIN GRADLE EXTENSIONS START def hasBuildExtras = file('build-extras.gradle').exists() // Set property defaults after extension .gradle files. // Cast to appropriate types. def computeBuildTargetName(debugBuild) { // Make cdvBuild a task that depends on the debug/arch-sepecific task. task cdvBuildRelease task cdvPrintProps << { android {
} dependencies { def promptForReleaseKeyPassword() { gradle.taskGraph.whenReady { taskGraph -> def addSigningProps(propsFilePath, signingConfig) {
} for (def func : cdvPluginPostBuildExtras) { // This can be defined within build-extras.gradle as: FCM Gradle: buildscript { plugin.xml:
Please check the below url of module settings screenshot: https://screencast.com/t/XJHX6eUoc Please help me asap... |
Hi, i'm using both fcm-plugin and googleplus-plugin
BUT still got ERROR:
also this; UPDATE: BUT play service ver doesnt change,only firebase; |
Hello
This happened after installation of plugin and running :
Any clues what to do ?
I have Cordova version 6.3.1
Thanks
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
Execution failed for task ':processDebugGoogleServices'.
The text was updated successfully, but these errors were encountered: