내 스칼라 프로그램을 (SBT를 통해) 실행하려고하면 오류가 발생합니다.스칼라/SBT 프로젝트를 컴파일 할 수 없습니다.
여기 발췌입니다 :
[error] missing or invalid dependency detected while loading class file 'IterableUtils.class'.
[error] Could not access type ScalaObject in package scala,
[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 'IterableUtils.class' was compiled against an incompatible version of scala.
[error] missing or invalid dependency detected while loading class file 'AsBooleanTrait.class'.
[error] Could not access type ScalaObject in package scala,
[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.)
.....
나는 클래스 패스에 있지만 아무 소용 스칼라 - library.jar를 추가했다. 누군가는 무엇이 실종 될지 알고 있습니까?
ps. 사용 - OSX에> 새 SBT 프로젝트 (인 IntelliJ)
편집 :
이 체격 : 여기에 build.sbt이야
name := "test"
version := "1.0"
scalaVersion := "2.11.8"
resolvers += "Scales XML" at "https://mvnrepository.com/artifact/org.scalesxml/scales-xml_2.9.1"
libraryDependencies += "org.scalesxml" % "scales-xml_2.9.1" % "0.3-RC7"
SBT는
편집 2 버전 0.13.8입니다 아웃. 너무 빨리
스포크 : 나는 개체 것들로 변경 한 후 더 많은 :
편집 3 일을 ... 인스턴스를 생성하지 않고 (주 방법) 클래스를 실행하려고했다. build.sbt에서 scalaVersion을 설정하는 것과 관련이 있습니다. 그 전체 라인을 나갈 때 더 이상 의존성에 대해 불평하지 않습니다. 내가 다시 넣을 때 나는 위에서 언급 한 오류를 되 찾는다. 나는 brew install scala로 설치 한 후에도 2.11.7로 설정하려고했지만 아무 소용이 없다.
게시물을 편집하고'build.sbt' 파일을 추가 할 수 있습니까? – meucaa
SDK, SBT 및 Scala의 어떤 버전을 선택하셨습니까? –
요청에 따라 업데이트 – JHuys