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
- Add
library
& library-no-op` to the app - 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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great thanks for your feedback 😃
@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!!