NeutrinosPlatform / cordova-plugin-ml-text

Official site for the new plugin. Old Source hosted in bitbucket. See link
https://bitbucket.org/bhivedevs/cordova-plugin-ml-text
MIT License
14 stars 16 forks source link

Duplicated class with push plugin #12

Open Davids89 opened 2 years ago

Davids89 commented 2 years ago

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 commented 2 years ago

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

Cheers and have a nice day :) Chris Neutrinos

ogousa commented 2 years ago

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