我正在尝试从2.2更新播放到2.3,但我有几个错误抱怨DefaultReads不兼容。
[error] Could not access term time in package java,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
[error] A full rebuild may help if 'DefaultReads.class' was compiled against an incompatible version of java.
[error] (jsObj \ "items").asOpt[JsArray] match {
答案 0 :(得分:1)
问题是播放缓存依赖性。我不应该使用最新版本。在我使用与Play版匹配的版本之后,它可以正常工作。
" com.typesafe.play" %" play-cache_2.11" %" 2.3.8"
答案 1 :(得分:0)
根据@ richard-close的建议,这个问题是由我的情况引起的,因为sbt使用了jdk7。
您可以使用
进行检查sbt
> eval System.getProperty("java.version")
[info] ans: String = 1.7.0_80
> eval System.getProperty("java.home")
[info] ans: String = /usr/lib/jvm/java-7-oracle/jre