Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SerializationException kotlinx.serialization.SerializationException #158

Open
milos-steps-app opened this issue Aug 30, 2024 · 0 comments
Open

Comments

@milos-steps-app
Copy link

kotlinx.serialization.SerializationException: Serializer for subclass 'PaywallEventReceiver' is not found in the polymorphic scope of 'Capability'.
Check if class with serial name 'PaywallEventReceiver' exists and serializer is registered in a corresponding SerializersModule.
To be registered automatically, class 'PaywallEventReceiver' has to be '@serializable', and the base class 'Capability' has to be sealed and '@serializable'.
at kotlinx.serialization.SerializationException.
at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered
at qb.Platform_commonKt.throwSubtypeNotRegistered(Platform.common.kt:0)
at kotlinx.serialization.internal.AbstractPolymorphicSerializerKt.throwSubtypeNotRegistered
at kotlinx.serialization.PolymorphicSerializerKt.findPolymorphicSerializer(SourceFile:109)
at kotlinx.serialization.json.internal.AbstractJsonTreeEncoder.encodeSerializableValue(TreeJsonEncoder.kt:298)
at kotlinx.serialization.internal.TaggedEncoder.encodeSerializableElement(TreeJsonEncoder.kt:137)
at kotlinx.serialization.internal.CollectionLikeSerializer.serialize(CollectionSerializers.kt:69)
at kotlinx.serialization.json.internal.AbstractJsonTreeEncoder.encodeSerializableValue(TreeJsonEncoder.kt:305)
at kotlinx.serialization.json.internal.TreeJsonEncoderKt.writeJson
at kotlinx.serialization.json.Json.encodeToJsonElement(Json.kt:176)
at com.superwall.sdk.network.device.CapabilityKt.toJson(Capability.kt:44)
at com.superwall.sdk.network.device.DeviceHelper.getTemplateDevice(DeviceHelper.kt:476)
at com.superwall.sdk.network.device.DeviceHelper$getTemplateDevice$1.invokeSuspend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant