Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix duplicate class error #66

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

phucynwa
Copy link
Contributor

In the previous code, when I build my project, the IDE show error:

Duplicate class com.google.zxing.integration.android.IntentIntegrator found in modules android-integration-3.3.0.jar -> android-integration-3.3.0 (com.google.zxing:android-integration:3.3.0) and zxing-android-embedded-4.3.0.aar -> zxing-android-embedded-4.3.0-runtime (com.journeyapps:zxing-android-embedded:4.3.0)
Duplicate class com.google.zxing.integration.android.IntentResult found in modules android-integration-3.3.0.jar -> android-integration-3.3.0 (com.google.zxing:android-integration:3.3.0) and zxing-android-embedded-4.3.0.aar -> zxing-android-embedded-4.3.0-runtime (com.journeyapps:zxing-android-embedded:4.3.0)

After researching, I realize that it can be fixed by just removing implementation 'com.google.zxing:android-integration:3.3.0', this dependency is uneccessary and too outdated (last update since 2016).

Now it works like a charm. 😊

You can try my jitpack build: implementation("com.github.phucynwa:QRGenerator:fix_duplicate_class-SNAPSHOT")

@androidmads androidmads merged commit a7932a8 into androidmads:master Nov 6, 2024
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants