So I’ve decided to learn how code in Kotlin this morning on eclipse.
Whenever I try to do an arithmetic operation Im always met with this error :
ERROR: Cannot access ‘java.io.Serializable’ which is a supertype of ‘kotlin.Int’. Check your module classpath for missing or conflicting dependencies
This is the code I wrote (just testing the waters with this language )
fun main()
{
println(“hello”)
val x : String= "cake
var y : String= "cookie"
y = "something new"
println(y)
var z: Int=+77
var nullvalues : Int ? = null
var other = null
println("the answer is : $z ")
println("the sum of 1 and 2 is ") //side note , if I add a string template after "is" like so ${1+2} I get the error and sometimes I only get the string part in the console
}
I’ve tried every thing. I googled the error , reinstalled the plug in but Im quite lost.
So please if anyone could offer a fix that would be much appreciated !