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

Hibernate - HibernateException: createQuery is not valid without active transaction