Cant build app from terminal
MrWinWon opened this issue · 1 comments
✍️ Describe the bug
Cant build app from terminal and ci/cd too.
💣 Steps to reproduce
In Terminal: ./gradlew assembleRelease bundleRelease (win)
> Duplicate class com.chuckerteam.chucker.BuildConfig found in modules jetified-library-3.5.2-runtime (com.github.chuckerteam.chucker:library:3.5.2) and jetified-library-no-op-3.5.2-runtime (com.github.chuckerteam.chucker:library -no-op:3.5.2) 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-3.5.2-runtime (com.github.chuckerteam.chucker:library -no-op:3.5.2) 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-3.5.2-runtime (com.github.chuckerteam.chucke r:library-no-op:3.5.2) 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-3.5.2-runtime (com.github.chuckerteam.chuc ker:library-no-op:3.5.2) 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-3.5.2-runtime (com.github.chuckert eam.chucker:library-no-op:3.5.2) 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-3.5.2-runtime (com.github.chuckerteam.chucke r:library-no-op:3.5.2) 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-3.5.2-runtime (com.github.chuckerteam .chucker:library-no-op:3.5.2)
- Android Studio Electric Eel
- OS: win/linux
- Chucker version: 3.5.2
In Gradle:
implementation "com.github.chuckerteam.chucker:library:${versions.chuck}" releaseImplementation "com.github.chuckerteam.chucker:library-no-op:${versions.chuck}"
To resolve it - change "implementation" to "debugImplementation"
debugImplementation "com.github.chuckerteam.chucker:library:${versions.chuck}" releaseImplementation "com.github.chuckerteam.chucker:library-no-op:${versions.chuck}"