Skip to content
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

Duplicated class with push plugin #12

Open
Davids89 opened this issue Sep 24, 2021 · 2 comments
Open

Duplicated class with push plugin #12

Davids89 opened this issue Sep 24, 2021 · 2 comments

Comments

@Davids89
Copy link

Hello, I'm trying to install this plugin https://github.com/havesource/cordova-plugin-push.

When I build my Android application, I have the following error code.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class com.google.firebase.components.AbstractComponentContainer found in modules jetified-firebase-common-17.0.0-runtime.jar (com.google.firebase:firebase-common:17.0.0) and jetified-firebase-components-16.0.0-runtime.jar (com.google.firebase:firebase-components:16.0.0)

It's seems related to the Google Service jar file downloaded to use MLKit. This plugin is using by default 16.0.0 version and the push plugin uses 17.0.0 by default. They explain that if another plugin download a jar, that plugin must be changed to use with it https://github.com/havesource/cordova-plugin-push/blob/master/docs/INSTALLATION.md#more-than-one-library-with-package-name-comgoogleandroidgms.

@ChrisTomAlx
Copy link
Collaborator

Hey if you are able to raise a PR I can check it out.

Cheers and have a nice day :)
Chris
Neutrinos

@ogousa
Copy link

ogousa commented Apr 18, 2022

I have exactly the same issue. Does anybody have a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants