arrayListOf和hashMapOf:未解析的引用

我试图在我的本地机器上玩Kotlin HTML builder的例子 。

abstract class Tag(val name: String) : Element { val children = arrayListOf<Element>() val attributes = hashMapOf<String, String>() 

IntelliJ的想法hashMapOf地解决arrayListOfhashMapOf

截图

导入kotlin.collectionsimport kotlin.collections.* ),其中arrayListOf被定义,没有帮助。

我怎样才能解决这些错误?

确保你使用最新的1.0 kotlin插件和1.0运行时。 之后,无效IJ缓存并重新启动IJ可能是一个好主意。