简体   繁体   中英

Getting build issue while building kotlin code. "Unresolved reference: datetime in kotlin "

The Complete error is Execution failed for task ':compileKotlinJs'.

Compilation error. See log for more details Unresolved reference: datetime

this issue is coming when I do "import kotlinx.datetime.Clock" and i have implemented implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.1.1").

Can someone help?

At the top of the window with your code tap - sync now. Sure you already added dependencies in build.gradle.kts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM