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

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

Comments

Popular posts from this blog

Oracle - duplicate fields in RECORD,TABLE or argument list are not permitted

Oracle - ORA-29282: invalid file ID, ORA-06512: at "SYS.UTL_FILE"