我正在尝试在 IntelliJ 中打开一个 play 2.4 项目,但由于事情发生了变化,我不知道该怎么做。
在以前的版本中,我可以运行
activator idea
或者使用激活器 UI 并点击生成 intelliJ 项目,但是在 2.4 中,idea 命令似乎不存在
[error] Not a valid command: idea (similar: eval, alias)
[error] Not a valid project ID: idea
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: idea (similar: clean)
[error] idea
[error] ^
UI 似乎坏了,当我单击生成 intelliJ 项目时,它会尝试编译应用程序并给出以下错误:
play/Play$
java.lang.NoClassDefFoundError: play/Play$
Use 'last' for the full log.
Failed to load project.
我使用 play java 模板从头开始创建项目:
activator new
我也尝试将文件夹作为项目导入,但 intelliJ 似乎没有将其识别为项目