Unresolved type LocalDate in Kotlin class

Answered

I created a new Kotlin project using Intellij 2016.3.3 and importing java.time.LocalDate doesn't do anything.

Building the same class with a simple gradle script does work so this looks like a problem with the IDE.

Have I missed an obvious setting?

0
4 comments

Please discuss Kotlin specific issues at https://discuss.kotlinlang.org/ and report bugs at https://youtrack.jetbrains.com/issues/KT. Thank you.

0
Avatar
Permanently deleted user

Is discuss.kotlinlang.org in charge of bug with the intellij kotlin plugin?

Bacause as I said, building with gradle does work, so Kotlin isn't the issue here.

The only thing not working is Intellij not understanding "import java.time.LocalDate" when this line is in a Kotlin file, inside a Kotlin project.

 

0

Yes, the issue is Kotlin specific in this case.

0
Avatar
Permanently deleted user

Thank you.

I will try my luck over there.

0

Please sign in to leave a comment.