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

Duplicate Class com.google.zxing #44

Open
gregowbr opened this issue Jun 9, 2023 · 0 comments
Open

Duplicate Class com.google.zxing #44

gregowbr opened this issue Jun 9, 2023 · 0 comments

Comments

@gregowbr
Copy link

gregowbr commented Jun 9, 2023

Duplicate class com.google.zxing.BarcodeFormat found in modules jetified-barcodescanner-release-2.1.5-runtime (:barcodescanner-release-2.1.5:) and jetified-core-3.4.0 (com.google.zxing:core:3.4.0)
     Duplicate class com.google.zxing.Binarizer found in modules jetified-barcodescanner-release-2.1.5-runtime (:barcodescanner-release-2.1.5:) and jetified-core-3.4.0 (com.google.zxing:core:3.4.0)
     Duplicate class com.google.zxing.BinaryBitmap found in modules jetified-barcodescanner-release-2.1.5-runtime (:barcodescanner-release-2.1.5:) and jetified-core-3.4.0 (com.google.zxing:core:3.4.0)
     Duplicate class com.google.zxing.ChecksumException found in modules jetified-barcodescanner-release-2.1.5-runtime (:barcodescanner-release-2.1.5:) and jetified-core-3.4.0 (com.google.zxing:core:3.4.0)
     Duplicate class com.google.zxing.DecodeHintType found in modules jetified-barcodescanner-release-2.1.5-runtime (:barcodescanner-release-2.1.5:) and jetified-core-3.4.0 (com.google.zxing:core:3.4.0)

I have a bunch of duplicate class errors, how do I solve this? I tried a lot of solutions online and I couldn't
like this in my build.gradle:

dependencies {
    configurations.all {
        exclude group: 'com.google.zxing'
    }
}

and I couldn't solve it, how do I fix when two cordova plugins is exporting same class ?

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

1 participant