https://kotlinlang.org logo
Title
c

Carrascado

07/30/2020, 5:50 PM
Is it ok to use Java packages for organizing Kotlin code? Or does Kotlin have its own "package" concept? I'm not very sure of what to click (It's AndroidStudio)
w

WillP

07/30/2020, 6:23 PM
packages are the same for Java and Kotlin. clicking "package" will work just fine
c

Carrascado

07/30/2020, 6:28 PM
That's great thank you
m

Matteo Mirk

08/12/2020, 1:43 PM
You can use packages in the same way as Java but in Kotlin they don’t need to reflect the directory structure. In fact the Kotlin language convention should be to start the directories tree after the common package prefix: https://kotlinlang.org/docs/reference/coding-conventions.html#directory-structure