4
我正在關注的SBT方向here:爲什麼sbt認爲這是一個'未知的神器?'
的指示說,包括這在我build.sbt文件:
libraryDependencies += "org.apache.lucene" % "lucene-core" % "6.4.1"
但是當我將它放入的IntelliJ,它給人的錯誤:unresolved artifact. Not resolved or indexed.
我對Scala和SBT來說是新的。有人可以幫忙嗎?
嘗試使用雙率' 「org.apache.lucene」 %% 「Lucene的核心」 % 「6.4.1」',以適當的Scala版本添加到庫中,還要檢查該版本你正在使用的scala,以及針對哪個版本庫構建,如果你有警告,嘗試更新你的本地緩存,'ctrl + alt + shift + s',然後模塊,有本地緩存並更新 –
可能重複的[ 「未知的神器。未解決或索引」錯誤爲scalatest](http://stackoverflow.com/questions/41372978/unknown-artifact-not-resolved-or-indexed-error-for-scalatest) – Rumid
只需按照指示[回答](http://stackoverflow.com/a/41484503/5058677)和刷新項目。 – Rumid