object xml is not a member of package scala

前端 未结 4 801
离开以前
离开以前 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:54

    I have the same error, I tried lots of ways. Finally, I found it is the Java Loading dependencies order issue. If I move it to the last one. it works fine for me.

    I modify it in my IntelliJ Idea: cmd-; Project Settings -- Modules -- Dependencies click + in bottom-left -- 2 Library -- From Maven

提交回复
热议问题