object xml is not a member of package scala

前端 未结 4 799
离开以前
离开以前 2020-12-16 15:08

The following code in the compiler:

abstract class query {def get: Unit => scala.xml.Elem}

gives me the error: \"object xml is not a mem

4条回答
  •  [愿得一人]
    2020-12-16 15:57

    Update the dependency

    // https://mvnrepository.com/artifact/org.scala-lang.modules/scala-xml_2.12
    libraryDependencies += "org.scala-lang.modules" % "scala-xml_2.12" % "1.0.6"
    

提交回复
热议问题