How to Resolve 'not found: object anorm' for play 2.4.3

Deadly 提交于 2019-12-23 21:15:41

问题


I'm using play 2.4.3, When I import anorm like

import anorm._ import anorm.SqlParser._

this brings up the error message below in the IDE...

not found: object anorm

But my project will execute (without throwing any error).

Dependencies

libraryDependencies ++= Seq("com.typesafe.play" %% "anorm" % "2.3.6")

Editor

eclipse Luna

scala version

scalaVersion := "2.11.6"

Activator

Version 1.3.6

OS

Windows 8


回答1:


Your imports are incorrect - they should be:

import anorm._
import anorm.SqlParser._

Note the difference on the second import.

HTH



来源:https://stackoverflow.com/questions/33139844/how-to-resolve-not-found-object-anorm-for-play-2-4-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!