Osman Saral
12/16/2021, 12:15 PMval commonMain by getting {
dependencies {
api(Deps.kotlinxDateTime)
}
}
or maybe
val androidMain by getting {
dependencies {
api(Deps.kotlinxDateTime)
}
}
And use kotlinx datetime from android? PS: I tried these but they didn't work.rudolf.hladik
12/16/2021, 1:33 PMval commonMain by getting {
dependencies {
api(Deps.kotlinxDateTime)
}
}
and you will see DateTime in Android app moduleOsman Saral
12/16/2021, 1:41 PMOsman Saral
12/16/2021, 1:52 PMrudolf.hladik
12/16/2021, 2:56 PMorg.jetbrains.kotlinx:kotlinx-datetime
in common as api
and I can use it in AndroidOsman Saral
12/16/2021, 3:10 PMUnresolved reference: datetime
Cannot access class 'kotlinx.datetime.Instant'. Check your module classpath for missing or conflicting dependencies
Osman Saral
12/16/2021, 3:11 PMMarkRS
12/16/2021, 3:15 PMOsman Saral
12/16/2021, 3:15 PMOsman Saral
12/16/2021, 3:16 PM