What does 'unresolved reference: x' mean in kotlin?

This error suggests that the compiler cannot find a reference to the variable, function, or class you're using.

Example:


println(someUnknownVariable)

Solution:


val someKnownVariable = "Hello"
println(someKnownVariable)
Ensure that the variable, function, or class has been declared and is in scope.

Beginner's Guide to Kotlin