Hi team, Kotlin beginner question here, created a ...
# announcements
a
Hi team, Kotlin beginner question here, created a new package in Kotlin Project, but its not allowing me to use Kotlin basic function such as println,
r
It should be in
src/main/kotlin
, you have it two directories too high
1
a
Thanks Ryan, but if i want to create a new package or function inside that package…even in that scenario atleast it should allow me basic functions
h
On the top you can see the reason for that: kotlin is Not configured
Ah, but thats probably because of what ryan said, sorry
g
Move "museum" dir to src/main/kotlin as Ryan suggested
1
a
Thanks @rnett and @gildor Got it now But where
src/main/kotlin
is configured as a root directory
g
It's default source set, configured by Kotlin Gradle Plugin, you can override if if you want, but it's default convention
❤️ 1
a
Thanks @gildor