在尝试使用 Intellij
编译我的应用程序时遇到了错误:
错误:无法编译 Groovy 文件:模块未定义 Groovy 库
我通过在 Intellij 中选择模块时,当收到提示时选择 "Configure Groovy SDK"
来解决此问题。我使用了库 org.codehaus.groovy:groovy-all:2.4.4
,这会将该库作为模块的 dependency
添加进来。
问题在于,每次我重新构建项目或在 Intellij 中 “刷新 Gradle 项目”,我都不得不再次 “配置 Groovy SDK”。
我该如何设置我的项目,以便我 不必 每次重复此步骤?