Go to
Preference -> Build, Execution, Deployment
-> SBT
-> check "Use SBT shell for build and import"
-> Press OK
You can now refresh SBT projects and it should work .
if you want, you could uncheck “Use SBT shell for build and import” and it will also work