I recently installed Intellj Idea Community Edition for learning Kotlin: since I'm a Beginner I write some basic code which is as follows:
fun main() {
val x = readln().toString();
println(x);
}
I don't know if there are some spelling mistakes, and yeah I hit the run button to let the build process start during the compilation, the build output showed this message:
Kotlin: Cannot access 'java.io.Serializable' which is a supertype of 'kotlin.String'. Check your module classpath for missing or conflicting dependencies[enter image description here]
This is my project Structure modules snapshot:
and this is my project libraries: and my project setting :
I'm expecting to get this problem solved thanks in advance