Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does sbt think this is an 'unknown artifact?'

I'm following the sbt directions here:

The instructions say to include this in my build.sbt file:

libraryDependencies += "org.apache.lucene" % "lucene-core" % "6.4.1"

But When I put that into IntelliJ, it gives the error: unresolved artifact. Not resolved or indexed. I'm new to Scala and SBT. Can someone help?

like image 859
user3685285 Avatar asked Mar 10 '23 16:03

user3685285


1 Answers

After you add library you need to refresh SBT project. you can move cursor to this error, and Option+Enter in mac or Alt+Enter in Windows/Linux for Refresh project. like:

enter image description here

like image 168
chengpohi Avatar answered Mar 20 '23 10:03

chengpohi