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 issue while building release #1314

Open
sumitraaho opened this issue Nov 22, 2024 · 0 comments
Open

Duplicate class issue while building release #1314

sumitraaho opened this issue Nov 22, 2024 · 0 comments

Comments

@sumitraaho
Copy link

✍️ Describe the bug

💣 Steps to reproduce

  1. Go to '...'
  • we have multi module setup and in one of module we have chucker dependency : releaseImplementation "com.github.chuckerteam.chucker:library-no-op:3.5.2".
    But in main app we have releaseImplementation "com.github.chuckerteam.chucker:library-no-op:4.0.0", while building the application it should move chucker dependency directly to 4.0.0 version, however it is giving duplicate class issue among 3.5.2 & 4.0.0.
  1. Click on '....'
  2. Scroll down to '....'
  3. See error:

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

  1. dependency I have used:
    debugImplementation "com.github.chuckerteam.chucker:library:4.0.0"
    releaseImplementation "com.github.chuckerteam.chucker:library-no-op:4.0.0"

with jitpack.

🔧 Expected behavior

we have multi module setup and in one of module we have chucker dependency : releaseImplementation "com.github.chuckerteam.chucker:library-no-op:3.5.2".
But in main app we have releaseImplementation "com.github.chuckerteam.chucker:library-no-op:4.0.0", while building the application it should move chucker dependency directly to 4.0.0 version, however it is giving duplicate class issue among 3.5.2 & 4.0.0.

📷 Screenshots

📱 Tech info

  • Device:
  • OS:
  • Chucker version: 3.5.2 and 4.0.0

📄 Additional context

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