java - play framework 2.6 ws cannot resolve -
i use play framework 2.6 need send http request url, use ws sending request first add below line sbt.build
librarydependencies += ws
but in controller play cannot resolve ws package
import play.libs.ws.*;
how can add play.libs.ws controller???
try add
librarydependencies += "com.typesafe.play" %% "play-ws" % "2.6.3"
to build.sbt (where can specify proper version instead of 2.6.3) , refresh sbt project.
then
import play.libs.ws._
in scala or
import play.libs.ws.*;
in java should work.
if there issue resolving dependencies try sbt clean
+ sbt update
or re-import project ide.
Comments
Post a Comment