简体   繁体   English

找不到解决方法:播放游戏2.5.8的对象定理

[英]How to Resolve not found: object anorm for play 2.5.8

I'm using Play 2.5.8, Given below Anorm header files using in models but it's throwing error, How do I resolve it. 我使用的是Play 2.5.8,下面在模型中使用Anorm标头文件,但会引发错误,我该如何解决。 Already I tried this link but no use How to Resolve 'not found: object anorm' for play 2.4.3 我已经尝试过此链接,但没有使用如何解决播放2.4.3的“未找到:对象主动脉”

在此处输入图片说明

Scala Version Scala版本

version := "1.0-SNAPSHOT"
scalaVersion := "2.11.7"

Dependencies 依存关系

libraryDependencies ++= Seq(
  jdbc,
  cache,
  ws,
  "org.scalatestplus.play" %% "scalatestplus-play" % "1.5.1" % Test,
  "mysql" % "mysql-connector-java" % "5.1.38",
  "com.typesafe.play" %% "anorm" % "2.5.1",
   evolutions
)

Editor 编辑

Eclipse Luna

OS 操作系统

Ubuntu 16.04 / Windows 7

Build.sbt Build.sbt

// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.8")

// web plugins

addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.4")

addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.8")

addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.1")

addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")

addSbtPlugin("org.irundaia.sbt" % "sbt-sassify" % "1.4.6")

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

Try referring the Maven repository and confirm that you are using the correct dependency 尝试引用Maven存储库,并确认您使用的是正确的依赖关系

https://mvnrepository.com/artifact/play/anorm_2.9.1 https://mvnrepository.com/artifact/play/anorm_2.9.1

copy paste the dependency from there 复制从那里粘贴依赖性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM