我的build.sbt:
import android.Keys._
android.Plugin.androidBuild
name := "teacher-journal"
scalaVersion := "2.11.0"
proguardCache in Android ++= Seq(
ProguardCache("org.scaloid") % "org.scaloid"
)
proguardOptions in Android ++= Seq("-dontobfuscate", "-dontoptimize", "-dontwarn scala.collection.mutable.**")
libraryDependencies += "org.scaloid" %% "scaloid" % "3.3-8"
scalacOptions in Compile += "-feature"
run <<= run in Android
install <<= install in Android
它给了我一个错误:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.scala-lang#scala-library;2.10.3: configuration not found in org.scala-lang#scala-library;2.10.3: 'compile'. It was required from default#teacher-journal-build;0.1-SNAPSHOT provided
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.scala-lang#scala-library;2.10.3: configuration not found in org.scala-lang#scala-library;2.10.3: 'compile'. It was required from default#teacher-journal-build;0.1-SNAPSHOT provided
Sbt 0.13.2,系统scala 2.10.2,java 8,fedora 20.为什么需要scala 2.10.3以及如何修复错误?
一切都适用于在Ubuntu上具有类似配置的朋友。
答案 0 :(得分:6)
通过清理〜/ .sbt和〜/ .ivy2
进行修复