2016-02-26 135 views
1

我想在本地機器上玩Kotlin HTML builder examplearrayListOf和hashMapOf:未解決的參考

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

IntelliJ IDEA的怒罵arrayListOfhashMapOf是懸而未決。

Screenshot

導入kotlin.collectionsimport kotlin.collections.*),其中arrayListOf定義,並沒有幫助。

我該如何解決這些錯誤?

回答

4

請確保您使用最新的1.0 kotlin插件和1.0運行時。之後,無效IJ緩存並重新啓動IJ可能是一個好主意。