I'm rewriting my model class to Kotlin
, which has to be Parcelable
and used in AIDL
:
@Parcelize
data class MyCustomObject(val value1: String, val value2: String) : Parcelable
During compilation it crashes with error:
error: incompatible types: Object cannot be converted to MyCustomObject
and points to this line in generated code:
if ((0!=_reply.readInt())) {
_result = com.mypackagename.MyCustomObject.CREATOR.createFromParcel(_reply);
}
I used this annotation for other purposes and it was ok, only in AIDL I found mismatch so far.
Any ideas what's wrong?
EDIT: After 5 days with no single comment I've created a ticket for this issue.