Compile time duplicate error due to Epoxy using kotlin-parcelize
See original GitHub issueHello everyone 👋
From epoxy versions 4.2.0 and up I’m getting the following error. It is caused by the removal of kotlin-android-extensions plugin and the replacement with kotlin-parcelize
Since it is a plugin that is causing a duplicate I’m not sure what is the approach to fix this compilation error.
Migrating away from kotlin-android-extensions is not feasible as a solution in the short term due to the amount of synthetics the project I’m working on has.
Duplicate class kotlinx.android.parcel.IgnoredOnParcel found in modules
kotlin-android-extensions-runtime-1.4.20-RC (org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.20-RC)
and kotlin-parcelize-runtime-1.4.20-RC (org.jetbrains.kotlin:kotlin-parcelize-runtime:1.4.20-RC)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Duplicate class kotlinx.android.parcel.IgnoredOnParcel found ...
I found the Answer The problem was kotlin developers deprecated kotlin-android-extensions and added separate dependencies for each of them ...
Read more >Build fails with `java.lang.RuntimeException: Duplicate class found ...
Build fails with `java.lang.RuntimeException: Duplicate class found in modules` on `checkDebug(Release)DuplicateClasses` task when both `kotlin-parcelize` and ` ...
Read more >lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks ...
import kotlin.text.Charsets.UTF_8. /** Checks Gradle files for potential errors. */. open class GradleDetector : Detector(), GradleScanner {.
Read more >sitemap.xml - ProAndroidDev
https://proandroiddev.com/tagged/kotlin 2022-11-19 weekly 0.7 ... .com/speed-up-your-build-with-gradle-remote-build-cache-2ee9bfa4e18 2018-02-17 monthly 1.0 ...
Read more >Steep learning curve : r/androiddev - Reddit
Usually when I study new things I start with the general idea and… ... Exactly, it's good that I didn't put much time...
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 Free
Top 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
It seems to be fixed on epoxy version 4.4.0. I have built successfully without the error with version 4.4.0.
Can confirm, closing the issue! Thanks whoever fixed it 😄