Clicky

Play - play.libs.ws.WSClient [error] cannot find symbol

December 4, 2015

Problem:

[error] (…): package play.libs.ws does not exist
[error] play.libs.ws.WSClient
[error] (…): cannot find symbol
[error]   symbol:   class WSClient
[error]   location: class controllers.(…)
[error] WSClient
[error] (compile:compileIncremental) javac returned nonzero exit code

Solution:

Add  javaWs to build.sbt file:

libraryDependencies ++= Seq(
      javaWs
 )

and refresh the project:

  • sbt clean compile run

or,

  • activator clean compile run