2015-04-03 53 views
1

我想从2.2更新玩2.3,但我有几个错误抱怨DefaultReads不兼容。玩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

我猜具有提高代码错误会有所帮助。 – cchantep 2015-04-03 08:12:30

+1

'java.time'是jdk8中的一个新包。也许试图用jdk7构建jdk8相关代码?消息看起来像是来自宏 – 2015-04-03 08:22:28

+0

迁移后你是否干净? – 2015-04-03 13:07:08

回答

1

问题是播放缓存依赖。我不应该使用最新的。在使用与Play版本相匹配的版本之后,它可以正常工作。

“com.typesafe.play”%“播放cache_2.11”%“2.3.8”

0

通过具有通过使用JDK7建议由@理查德关闭,这个问题是在我的情况引起的SBT。

您可以检查与

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