I’ve tried to get Kotlin to work inside VSCode. I’ve managed to get it working with the basic kotlin library but when I try to import any java package or kotlinx I get this error on the import statement.
I get no syntax error from VSCode and I even get documentation reference so is not due to VSCode or Gradle for that matter. I am thinking is due to the command that I use to compile my source (
kotlinc main.kt -include-runtime -d main.jar) or due to my folder structure(my source is in the root of the project), but this is just a rough guess.
Does anyone have any idea what the problem might be? Thanks in advance!