question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflicts related to duplicate classes in jetified-runtime modules while building the project

See original GitHub issue

✍️ Describe the bug

When I try to add library & library-no-op` to the app, there is some conflict related to duplicate classes in jetified-runtime modules.

💣 Steps to reproduce

  1. Add library & library-no-op` to the app
  2. Build the project

🔧 Expected behavior

Project should be built successfully.

📷 Stack-trace

Duplicate class com.chuckerteam.chucker.BuildConfig found in modules jetified-library-3.5.0-runtime (com.github.chuckerteam.chucker:library:3.5.0) and jetified-library-no-op-3.5.0-runtime (com.github.chuckerteam.chucker:library-no-op:3.5.0)
Duplicate class com.chuckerteam.chucker.api.Chucker found in modules jetified-library-3.5.0-runtime (com.github.chuckerteam.chucker:library:3.5.0) and jetified-library-no-op-3.5.0-runtime (com.github.chuckerteam.chucker:library-no-op:3.5.0)
Duplicate class com.chuckerteam.chucker.api.ChuckerCollector found in modules jetified-library-3.5.0-runtime (com.github.chuckerteam.chucker:library:3.5.0) and jetified-library-no-op-3.5.0-runtime (com.github.chuckerteam.chucker:library-no-op:3.5.0)
Duplicate class com.chuckerteam.chucker.api.ChuckerInterceptor found in modules jetified-library-3.5.0-runtime (com.github.chuckerteam.chucker:library:3.5.0) and jetified-library-no-op-3.5.0-runtime (com.github.chuckerteam.chucker:library-no-op:3.5.0)
Duplicate class com.chuckerteam.chucker.api.ChuckerInterceptor$Builder found in modules jetified-library-3.5.0-runtime (com.github.chuckerteam.chucker:library:3.5.0) and jetified-library-no-op-3.5.0-runtime (com.github.chuckerteam.chucker:library-no-op:3.5.0)
Duplicate class com.chuckerteam.chucker.api.RetentionManager found in modules jetified-library-3.5.0-runtime (com.github.chuckerteam.chucker:library:3.5.0) and jetified-library-no-op-3.5.0-runtime (com.github.chuckerteam.chucker:library-no-op:3.5.0)
Duplicate class com.chuckerteam.chucker.api.RetentionManager$Period found in modules jetified-library-3.5.0-runtime (com.github.chuckerteam.chucker:library:3.5.0) and jetified-library-no-op-3.5.0-runtime (com.github.chuckerteam.chucker:library-no-op:3.5.0)

📱 Tech info

  • Chucker version: 3.5.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cortinicocommented, Jul 27, 2021

Great thanks for your feedback 😃

0reactions
RahulSDeshpandecommented, Jul 27, 2021

@cortinico I tried cleaning the app multiple times previously, but the issue was not resolved.

😞 I now cleaned up my git local repo & gradle’s local .m2 folder as well, & now its working!! Strangely!! The app is getting built correctly!

Thanks though!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicated classes found in modules classes.jar
There are two ways to fix your issue. Excluding duplicated dependencies while implementation individually,.
Read more >
Duplicate classes appearing when compiling project using v3 ...
Expected behavior Correct compile Actual behavior Following error message: Duplicate class javax.activation.ActivationDataFlavor found in modules ...
Read more >
[SOLVED] Duplicated classes when building for Android
I'm getting lots of errors when I try to compile for Android. CommandInvokationFailure: Gradle build failed.
Read more >
Ban Duplicate Classes - Extra Enforcer Rules
Ban Duplicate Classes. This rule checks the dependencies and fails if any class is present in more than one dependency.
Read more >
Issue in building the project using Sendbird Call SDK - Android
I am getting this error: Duplicate class org.webrtc.AudioProcessingFactory found in modules classes.jar ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found