Hi all! I'm updating to version `0.7.1` of the dat...
# kotlinx-datetime
b
Hi all! I'm updating to version
0.7.1
of the datetime library, and I'm getting an error. I have read the docs about the Dreprecation of `Instant`, so I'm familiar with updates that need to happen there. I'm using
Clock
and have updated to
import kotlin.time.Clock
. But I get an error (in the IDE and at compile): > This declaration is only available in Kotlin 2.1 and newer versions and cannot be used with the specified API version 2.0. I'm confused by this as I'm using kotlin version 2.2.10 in my project. I~'m not sure why it thinks I've "specified API version 2.0"~. Has anyone else run into this?
Found the issue. Someone had "forced" 2.0 in the gradle config with:
Copy code
compilerOptions {
   apiVersion.set(KotlinVersion.KOTLIN_2_0)
}
🤦
(and by "someone", I mean "me")
spiderman pointing 8