Scala工程导入到sdk后cross-compiled错误

错误描述:

Description

nscala-time_2.10-1.2.0.jar is cross-compiled with an incompatible version of Scala (2.10). In case of errorneous report, this check can be disabled in the compiler preference page.

Resource  :gogo    Path:Unknown          LocationType:Scala Classpath Problem


Description
slick_2.10-2.1.0-M2.jar is cross-compiled with an incompatible version of Scala (2.10). In case of errorneous report, this check can be disabled in the compiler preference page.

Resource:gogo Path:Unknown         Location Type:Scala Classpath Problem


Description
slick-extensions_2.10-2.1.0-M2.jar is cross-compiled with an incompatible version of Scala (2.10). In case of errorneous report, this check can be disabled in the compiler preference page.

Resource:gogo Path:Unknown       LocationType:Scala Classpath Problem

解决方法:

http://scala-ide.org/docs/current-user-doc/faq/index.html

Scala IDE complains about ‘... is cross-compiled with an incompatible version of Scala ...’

The Scala IDE tries to check if binary incompatible Scala libraries have been inadvertently mixed in a project’s classpath. It works by extracting, from the name of the jars, which major version of Scala it has been compiled against (assuming the Scala convention for publishing cross-compiled libraries, and further assuming that Scala minor releases are binary compatible). If the extracted Scala major version doesn’t match the one bundled with the Scala IDE, a problem is reported. This ad-hoc validation prevents one of the most common reason for compiler crashes and lack of intelligent behavior in the Scala IDE.

If this check returns a false-negative, it can be disabled at the workspace level, or at the project level. The setting is withVersionClasspathValidator in the Scala  Compiler  Build Manager preference section.


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值