Has anyone faced this issue?? Can't create Kotlin ...
# android-studio
a
Has anyone faced this issue?? Can't create Kotlin or Java classes
j
Try to create a file then change file type as .kt
c
Can you also screenshot what node you are clicking on in the tree and if you are in the Android or Project tab in Project view?
a
Also something you might have to consider checking is that Java or Kotlin File/Class can only be created from java/kotlin directory.
a
Thanks everyone, it turns out the issue was adding
kotest
test engine in the
commonTest
caused it. As I commented it out I was able to create Kotlin classes