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.

Compile time duplicate error due to Epoxy using kotlin-parcelize

See original GitHub issue

Hello 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

image

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:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
degea9commented, Feb 21, 2021

It seems to be fixed on epoxy version 4.4.0. I have built successfully without the error with version 4.4.0.

0reactions
sanogueralorenzocommented, Feb 22, 2021

Can confirm, closing the issue! Thanks whoever fixed it 😄

Read more comments on GitHub >

github_iconTop 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 >

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