[英]IntelliJ IDEA unable to resolve build.sbt AND no sbt tool window is present
I've read another answers where you are able to navigate to the sbt tool window and re-build/re-import the project, but in my case there is no sbt tool window at all, although it is present for the newly created projects . 有任何想法吗?
1 - build.sbt 以红色突出显示
2 - 没有 sbt 工具 window
3 - sbt 工具出现在新创建的项目中
从控制台使用 sbt 的 PS 构建项目完美运行
万一有人遇到同样的问题
经过两天的尝试,我终于能够运行该项目,步骤是:
Preferences / Build, Execution, Deployment / sbt
你有正确的JRE
Preferences / Build, Execution, Deployment / Compiler / Scala Compiler Server
中是否有正确的JDK
\File / Project Structure / Project SDK
你有正确的 java SDK
IntelliJ Idea
代码编辑器以外的项目中删除.idea
IntelliJ Idea
,如果错误仍然存在 - 缓存失效应该有帮助 - File / Invalidate Caches / Restart
从此时开始, Idea
将看到项目是全新的,您将看到sbt
工具 window。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.