Nikita Khlebushkin
07/16/2021, 6:12 PMjava.lang.NoSuchFieldError: No field MIN of type Lj$/time/Instant; in class Lj$/time/Instant; or its superclasses (declaration of 'j$.time.Instant' appears in /data/app/my.app-Rumayx4kmF4yH-665uzCBw==/base.apk!classes2.dex)
at kotlinx.datetime.Instant.<clinit>(Instant.kt:96)
at kotlinx.datetime.Clock$System.now(Clock.kt:17)
The line where it happens:
val fetchStartEpoch = clock.now().toEpochMilliseconds()
I tried with datetime 0.1.1 and 0.2.1, same result.
Another interesting detail is that it only happened after I added
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
I had to add it after the library started to crash on Android 26. Any clues how I can deal with it?Nikita Khlebushkin
07/16/2021, 7:21 PM