nilTheDev
08/20/2021, 5:26 AMkotlin.io.path
. Tried invalidating caches and restart. Still no luck. Any idea on how to make this work?Klitos Kyriacou
08/20/2021, 8:12 AMnilTheDev
08/20/2021, 8:20 AMPath
constructor, from Kotlin's standard library, instead of Java's Paths.get()
method.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io.path/Klitos Kyriacou
08/20/2021, 8:29 AMilya.gorbunov
08/20/2021, 3:34 PMkotlin-stdlib-jdk7
or -jdk8
to use kotlin.io.path
package. Usually stdlib dependencies are added automatically by Kotlin gradle plugin, but sometimes gradle plugin fails to determine that it's ok to use kotlin-stdlib-jdk8
and adds a dependency on kotlin-stdlib
only.nilTheDev
08/21/2021, 3:26 PMnilTheDev
08/21/2021, 3:42 PMkotlin-stdlib-jdk7
does the job. Thank You so much. But it is really confusing for a beginner to understand why something from the stdlib
works and why it doesn't.