IntelliJ 无法解析 build.sbt 中的符号 [英] IntelliJ cannot resolve symbol in build.sbt

查看:35
本文介绍了IntelliJ 无法解析 build.sbt 中的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IntelliJ IDEA 15 在我的 build.sbt 文件中报告我的项目定义的未解析符号

IntelliJ IDEA 15 is reporting an unresolved symbol for my project definition in my build.sbt file

lazy val root = (project in file(".")).enablePlugins(PlayScala)

它报告了 projectin 的错误.

It's reporting an error with project and in.

Cannot resolve symbol project.
Cannot resolve symbol in.

其他一切都完美解决了,项目也都设置好了,sbt 构建良好,激活器运行良好.

Everything else resolves perfectly and the project is otherwise all set up, sbt builds fine, activator runs fine.

推荐答案

为了解决这个问题,我在 build.sbt 之上导入了:import sbt.project

To fix this issue, I imported: import sbt.project on top of my build.sbt

我正在使用 IntelliJ IDEA 16 EAP

I am working with IntelliJ IDEA 16 EAP

这篇关于IntelliJ 无法解析 build.sbt 中的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆