2015-04-03 52 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