我正在尝试使用Scala / SBT的JForex-3 SDK。

我的build.sbt看起来像:

name := "tmp"
version := "1.0"
scalaVersion := "2.12.1"

resolvers += "Dukascopy" at "https://www.dukascopy.com/client/jforexlib/publicrepo/"
libraryDependencies ++= Seq(
  "com.dukascopy.dds2" % "DDS2-jClient-JForex" % "3.1.2",
  "com.dukascopy.api" % "JForex-API" % "2.13.30"
)


导入import com.dukascopy.api.system时,仅提供“测试器”。我不知道其余的https://www.dukascopy.com/client/javadoc3/会发生什么

有人可以帮忙吗?

最佳答案

降级第一个库依赖项的版本可以解决此问题。降级到版本3.0.18

name := "tmp"

version := "1.0"

scalaVersion := "2.12.1"

resolvers += "Dukascopy" at "https://www.dukascopy.com/client/jforexlib/publicrepo/"

libraryDependencies ++= Seq(
  "com.dukascopy.dds2" % "DDS2-jClient-JForex" % "3.0.18",
  "com.dukascopy.api" % "JForex-API" % "2.13.30"
)

关于scala - 具有Scala和SBT的JForex 3,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/42294627/

10-12 22:40