gpt4 book ai didi

scala - Sbt:为什么它需要 Scala-lang 2.10.3?

转载 作者:行者123 更新时间:2023-12-05 00:25:53 24 4
gpt4 key购买 nike

我的 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, system scala 2.10.2, java 8, fedora 20. 为什么需要scala 2.10.3以及如何修复错误?

我的 friend 在 Ubuntu 上配置类似,一切都正常。

最佳答案

通过清理 ~/.sbt 和 ~/.ivy2 修复

关于scala - Sbt:为什么它需要 Scala-lang 2.10.3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23300424/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com