在通过Intellij Idea终极版本14.0.4创建Scala播放项目时,我面临着下面的错误。我已经尝试了所有替代方案来解决这个问题,比如更新插件,在命令提示符下构建项目并将其导入Idea等,但没有任何帮助。即使尝试了stackoverflow的一些建议也没有帮助。那么任何其他可能有助于解决这个问题的方法呢?
Error:Error while importing SBT project:
...
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[error] (*:update) sbt.ResolveException: unresolved dependency: sbt-run-support-210#sbt-run-support-210_2.10;0.1-SNAPSHOT: not found
Invalid response.
Invalid response.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
See complete log in C:\Users\admins\.IntelliJIdea14\system\log\sbt.last.log
答案 0 :(得分:0)
sbt
似乎无法解决sbt-run-support-210#sbt-run-support-210_2.10;0.1-SNAPSHOT
。
sbt-run-support
看起来像是一个sbt插件。
第一步是检查日志中是否存在未解析的依赖项。因此,请在您的问题中添加C:\Users\admins.IntelliJIdea14\system\log\sbt.last.log
的内容。
从现在开始,我只是在猜测:
您可能会发现以下内容:
[warn] module not found: ???#sbt-run-support;0.1-SNAPSHOT
[warn] ==== local: tried
[warn] C:/Users/admins.IntelliJIDea14/.ivy2/local/???/sbt-run-support/scala_2.10/sbt_0.13/0.1-SNAPSHOT/ivys/ivy.xml
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-snapshots/***/sbt-run-support/0.1-SNAPSHOT/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/???/sbt-run-support_2.10_0.13/0.1-SNAPSHOT/sbt-run-support-0.1-SNAPSHOT.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: ???#sbt-run-support;0.1-SNAPSHOT: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
前段时间,许多存储库被移至bintray.com
和JCenter存储库。
所以我找到了你的模块here。
因此,可能的修复方法是添加下载 sbt-launcher 版本0.13.6+并配置Idea以使用此sbt-launcher来构建项目。因为版本0.13.6 SBT 具有正确的解析器内置。然后您可能仍需要为build.sbt添加新的解析器:
resolvers += Resolver.jcenterRepo