file in main file in another package you can see the println is red I am new to kotlin and intellij ide. The main .kt file or any other .kt file created in the src/main file seems to work fine . But when i create another package in src and in it a new .kt file it shows kotlin not working.I tried clearing caches and starting but it didn't solve the problem . I have also reviewed other solutions but nothing seems to work for me.Any help is appreciated.
Asked
Active
Viewed 235 times
0
-
2could you be more specific like, what build system are you using , what jdk, , what kotlin version also screenshot if it it possible – Ananiya Jemberu Jun 03 '21 at 14:28
-
kotlin version 1.5.10 jdk version 16 – mafruz rahman7032 Jun 06 '21 at 08:01
-
Why do you create a separate directory for sources? If you use Gradle you must configure sources in Gradle files by the source sets, see https://stackoverflow.com/a/11581420/2000323 – Andrey Jun 09 '21 at 08:03