【问题标题】:InteliJ SBT auto import of scala project gives: Binary incompatibility in plugins detectedScala 项目的 IntelliJ SBT 自动导入提供:检测到插件中的二进制不兼容
【发布时间】:2015-05-07 10:35:14
【问题描述】:

我在 InteliJ 中愉快地使用 scala 2.10 和 Java 1.7 工作 - 并且正在尝试升级到 scala 2.11 和 Java 1.8

我在 Ubuntu 14 上 -- 并且 javac 显示

update-alternatives --config javac
There are 2 choices for the alternative javac (providing /usr/bin/javac).

  Selection    Path                                  Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-8-oracle/bin/javac   4         auto mode
  1            /usr/lib/jvm/java-7-oracle/bin/javac   3         manual mode
* 2            /usr/lib/jvm/java-8-oracle/bin/javac   4         manual mode

因为我同时安装了 java 7 和 8。

我正在尝试导入 Play 2.3 项目(使用 IntelJ SBT 自动导入)并收到错误

Error while importing SBT project: ... at xsbt.boot.Boot$.main(Boot.scala:20) at xsbt.boot.Boot.main(Boot.scala) [error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected. [error] Note that conflicts were resolved for some dependencies: [error] com.github.mpeltonen:sbt-idea [error] commons-io:commons-io [error] org.apache.commons:commons-lang3
......

我不确定如何进行调查;但我的想法是

来自 - Sbt plugin binary incompatibility - 它可能与 inteliJ 使用的 SBT 版本有关?

另一个想法是; InteliJ Scala 插件是否特定于 Java 版本(7 对 8?)如果是这样 - 我如何确保 InteliJ 获得正确的版本?我尝试重新安装插件;但这并没有改变什么。

谢谢 布伦特

【问题讨论】:

    标签: intellij-idea sbt java-8 scala-2.11


    【解决方案1】:

    啊;我只需要更新项目设置以使用 1.8!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-11-18
      • 1970-01-01
      • 2015-01-02
      • 1970-01-01
      • 2017-03-07
      • 2022-12-21
      • 1970-01-01
      相关资源
      最近更新 更多