2017-01-09 156 views
3

我將build.sbt文件中的scala版本更新爲2.11.8中的2.12.0。使用Scala時激活器dist失敗2.12.0

scalaVersion := "2.12.0" 

但現在激活DIST與下面的錯誤失敗。請告知:

[info] Resolving com.typesafe.play#twirl-api_2.12;1.1.1 ... 
[warn] module not found: com.typesafe.play#twirl-api_2.12;1.1.1 
[warn] ==== local: tried 
[warn] /home/ubuntu/.ivy2/local/com.typesafe.play/twirl-api_2.12/1.1.1/ivys/ivy.xml 
[warn] ==== public: tried 
[warn] https://repo1.maven.org/maven2/com/typesafe/play/twirl-api_2.12/1.1.1/twirl-api_2.12-1.1.1.pom 
[warn] ==== activator-launcher-local: tried 
[warn] /home/ubuntu/activator/repository/com.typesafe.play/twirl-api_2.12/1.1.1/ivys/ivy.xml 
[warn] ==== typesafe-releases: tried 
[warn] https://repo.typesafe.com/typesafe/releases/com/typesafe/play/twirl-api_2.12/1.1.1/twirl-api_2.12-1.1.1.pom 
[warn] ==== typesafe-ivy-releasez: tried 
[warn] https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/twirl-api_2.12/1.1.1/ivys/ivy.xml 

回答

3

您的依賴關係之一(twirl-api)尚未發佈用於Scala 2.12。你需要刪除這個依賴關係,讓它在2.12上發佈,否則留在Scala 2.11上。