Hello! I am having some strange bug: ``` java.l...
# kotlinx-datetime
n
Hello! I am having some strange bug:
Copy code
java.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:
Copy code
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
Copy code
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?
The problem solved: I had this logic in a framework which I plugged into an Android project. The compileOptions were added to the Android project instead of the framework, and when I moved that line out to the framework, everything began to work again.