You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Parcelize has moved out of the Kotlin Android Extensions (which is deprecated) into its own compiler plugin. It's using a different package name, but the new runtime still defines the old classes to provide deprecation errors. With both the old and new runtimes defining the same classes, this causes Android's checkDebugDuplicateClasses build task to fail.
💣 Steps to reproduce
Create Android application using Kotlin 1.4.20-M2 (or whatever version is now available) and using plugins { kotlin("plugin.parcelize") }.
Add Chucker 3.3.0.
Try to build.
> Task :app:checkDebugDuplicateClasses FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class kotlinx.android.parcel.IgnoredOnParcel found in modules jetified-kotlin-android-extensions-runtime-1.4.10 (org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.10) and jetified-kotlin-parcelize-runtime-1.4.20-M2 (org.jetbrains.kotlin:kotlin-parcelize-runtime:1.4.20-M2)
Duplicate class kotlinx.android.parcel.Parceler found in modules jetified-kotlin-android-extensions-runtime-1.4.10 (org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.10) and jetified-kotlin-parcelize-runtime-1.4.20-M2 (org.jetbrains.kotlin:kotlin-parcelize-runtime:1.4.20-M2)
Duplicate class kotlinx.android.parcel.Parceler$DefaultImpls found in modules jetified-kotlin-android-extensions-runtime-1.4.10 (org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.10) and jetified-kotlin-parcelize-runtime-1.4.20-M2 (org.jetbrains.kotlin:kotlin-parcelize-runtime:1.4.20-M2)
Duplicate class kotlinx.android.parcel.Parcelize found in modules jetified-kotlin-android-extensions-runtime-1.4.10 (org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.10) and jetified-kotlin-parcelize-runtime-1.4.20-M2 (org.jetbrains.kotlin:kotlin-parcelize-runtime:1.4.20-M2)
Duplicate class kotlinx.android.parcel.RawValue found in modules jetified-kotlin-android-extensions-runtime-1.4.10 (org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.10) and jetified-kotlin-parcelize-runtime-1.4.20-M2 (org.jetbrains.kotlin:kotlin-parcelize-runtime:1.4.20-M2)
Duplicate class kotlinx.android.parcel.TypeParceler found in modules jetified-kotlin-android-extensions-runtime-1.4.10 (org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.10) and jetified-kotlin-parcelize-runtime-1.4.20-M2 (org.jetbrains.kotlin:kotlin-parcelize-runtime:1.4.20-M2)
Duplicate class kotlinx.android.parcel.WriteWith found in modules jetified-kotlin-android-extensions-runtime-1.4.10 (org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.4.10) and jetified-kotlin-parcelize-runtime-1.4.20-M2 (org.jetbrains.kotlin:kotlin-parcelize-runtime:1.4.20-M2)
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
🔧 Expected behavior
Success
📷 Screenshots
📱 Tech info
Device:
OS:
Chucker version:
📄 Additional context
The text was updated successfully, but these errors were encountered:
I thought we removed kotlin-android-extensions plugin at all when migrated to ViewBinding. Seems I confused with other projects where I removed this plugin completetly.
We will fix it and release in 3.3.1 along with some other important fixes before final 1.4.20 Kotlin released.
✍️ Describe the bug
@Parcelize
has moved out of the Kotlin Android Extensions (which is deprecated) into its own compiler plugin. It's using a different package name, but the new runtime still defines the old classes to provide deprecation errors. With both the old and new runtimes defining the same classes, this causes Android'scheckDebugDuplicateClasses
build task to fail.💣 Steps to reproduce
plugins { kotlin("plugin.parcelize") }
.🔧 Expected behavior
Success
📷 Screenshots
📱 Tech info
📄 Additional context
The text was updated successfully, but these errors were encountered: