Skip to content

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
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

Successfully merging this pull request may close these issues.

2 participants