how to resolve NoSuchMethodError on typesafe config?

后端 未结 2 1540
天涯浪人
天涯浪人 2021-01-27 17:52

I\'m getting this error when trying to run my project.

Exception in thread \"main\" java.lang.NoSuchMethodError: com.typesafe.config.Config.getDuration

2条回答
  •  生来不讨喜
    2021-01-27 18:38

    Adding TypeSafe 1.3.1 as dependency might help, add it as part of your Seq() of dependencies:

    "com.typesafe" % "config" % "1.3.1"
    

提交回复
热议问题