arkivanov / Essenty

The most essential libraries for Kotlin Multiplatform development
Apache License 2.0
482 stars 15 forks source link

Issue with Parcelable #89

Closed ShubhGar closed 1 year ago

ShubhGar commented 1 year ago

file:///Users/shubham.garg/Downloads/Android-SDK-Sample-App-main/payu-sdk/src/commonMain/kotlin/com/payu/india/Model/Bnpl.kt:9:6 Class 'Bnpl' is not abstract and does not implement abstract member public abstract fun describeContents(): Int defined in android.os.Parcelable

arkivanov commented 1 year ago

Please make sure that you have applied the kotlin-parcelize Gradle plugin. See the corresponding Readme section.

ShubhGar commented 1 year ago

yes, I follow all step mention in readme, do you have any sample app for same

arkivanov commented 1 year ago

Sure, you can check this one - https://github.com/arkivanov/Decompose/blob/master/sample/shared/shared/build.gradle.kts

The error you mentioned means that the Android Parcelable interface is not implemented for that class. Which happens if kotlin-parcelize plugin is not applied.

ShubhGar commented 1 year ago
Screenshot 2023-04-19 at 9 35 03 PM

check this screenshot of my build.gradle.kts

arkivanov commented 1 year ago

Could you please also show the Bnpl class?

arkivanov commented 1 year ago

Closing this for now. Feel free to reopen if the issue is still relevant.