Closed HuangBiaoHb closed 2 months ago
It should be the kotlin version that causes the crash
Hey, looks like your Kotlin version is outdated. Can you try switching to Kotlin stdlib 1.9.22
? That would match the Kotlin version we use in our SDK. If you are trying to compile on as low a version of Kotlin as possible, I believe Kotlin version 1.8.20
is where the EnumEntries
class was introduced.
@HuangBiaoHb thanks for filing! I think we'll definitely add the Kotlin version that we depend on in our docs, but I am curious if there is something else going on here. I tried replicating this with your specified Kotlin and Gradle versions, but I was actually unable to compile in those cases, getting something like this for my references:
Class 'com.klaviyo.analytics.Klaviyo' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
Can you confirm those versions as well as the Android Gradle Plugin version and Core ktx version?
Thank you. It seems that our project has specified the kotlin version, and there was a problem of too many versions reporting errors
I will try to upgrade the kotlin version
Checklist
master
branch or latest release of this package.Description
Expected behavior
Actual behavior
Steps to reproduce
The Klaviyo Android SDK version information
2.4.0
Device Information
Galaxy s21
Android Studio Version
2023.3.1 Patch 1
Android API Level
34