Kotlin unresolved reference linkedListOf

Viewed 2754

Following this post http://obviam.net/index.php/libgdx-and-kotlin/ I created a project, and edited using Atom. It compiles, and runs on an android device. I want to convert to AndroidStudio for better tooling.

I'm using AndroidStudio 1.5.1, and it says I have the latest version of the kotlin plugin. I created a new project using the LibGDX setup program, imported into AdroidStudio, converted the main class to kotlin, everything works. Then I pasted in my existing my code, and when I build, this line:

val bullets:MutableList<NewBullet> = linkedListOf() 

gets this error:

Error:(19, 42) Unresolved reference: linkedListOf

When I select Tools -> Kotlin -> Configure it says 'All modules with Kotlin files are configured'.

I've also tried importing the existing project into AndroidStudio, and the result is the same issue.

1 Answers
Related