Hey, I have a hard time using `Parcelize` from the...
# android
c
Hey, I have a hard time using
Parcelize
from the Kotlin Android Extensions with Gradle KTS. I just created a minimal sample project, that highlights the error: https://github.com/ChristianBecker/parcelize_kts • If I use
app/build.gradle
everything works fine • If I use
app/build.gradle.kts
(by un-commenting line 4 in
settings.gradle.kts
) the Kotlin Compiler is unable to find
Parcelize
on the classpath and fails the build:
Copy code
e: […]/ParcelizeModel.kt: (4, 24): Unresolved reference: parcel
e: […]/ParcelizeModel.kt: (6, 2): Unresolved reference: Parcelize
e: […]/ParcelizeModel.kt: (7, 6): Class 'ParcelizeModel' is not abstract and does not implement abstract member public abstract fun writeToParcel(p0: Parcel!, p1: Int): Unit defined in android.os.Parcelable
Is this the right channel, or should I post this in #gradle, or somewhere else? (Sorry for copy-pasting, I just wanted to extend the scope)
i
It’s always good to ask. I guess #gradle channel would be a bit better, but in general I think you should report issue here https://youtrack.jetbrains.com/issues/KT
c
Thanks, I'll report the issue!