我在 Eclipse 中有一个新的 Kotlin 项目(我安装了 kotlin 插件)。但是这段代码:
val a: Int = 10000
println("Your Int Value is "+a);
Run Code Online (Sandbox Code Playgroud)
导致此错误:
ERROR: Cannot access 'java.io.Serializable' which is a supertype of 'kotlin.String'. Check your module classpath for missing or conflicting dependencies.
Run Code Online (Sandbox Code Playgroud)
这个错误的根源是什么?我该如何解决?
我看过关于 stackoverflow 的其他帖子,但他们都在谈论 Intellij 而不是 Eclipse。