Hi all i have received a weird crash error when in...
# kotlinx-datetime
b
Hi all i have received a weird crash error when invoking
Clock.System.now()
Copy code
Fatal Exception: java.lang.NoClassDefFoundError
kotlinx.datetime.Instant
kotlinx.datetime.Clock$System.now (Clock.kt:17)
l
Hello, which platform and which version of the platform?
b
Android 7.0 kotlinxDatetimeVersion=0.2.1
l
Can you try with the latest version, 0.3.2, and also make sure you have enabled coreLibraryDesugaring in all the Android modules using kotlinx.datetime, as specified on kotlinx.datetime README?
b
i am using it with KMM, i upgraded to 0.3.2 and added coreLibraryDesugaring to build.gradle . Will test and let you know if if found any issue
m
I'm also experiencing this problem and upgrading to 0.3.2 did not fix it. I was not experiencing it yesterday, and the only real change I've made is upgrading Android Studio from Bumblebee patch 1 to patch 2 and upgrading SDK tools with it.
The exception message is
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/Math8;
Upgrading the desugaring library to version 1.1.5 fixed it for me.
👍 1
1
114 Views