我在 Mac OS X 10.8.2 (Mountain Lion) 上安装了 grails-2.2.0,我使用的是正确安装了 grails 和 Java 的 Groovy-Grails-Tool-Suite。但是,当我创建一个新的 Grails 项目时,我收到一条消息说 -
Some projects in your workspace use Grails 2.20
You are using the Groovy 1.8.6.xx-20120921-2000-e43RELEASE compiler.
Grails requires version range 2.0.0
Various functionality may break if you use an incompatible compiler.
Set Preferences >> Groovy >> Compiler to change the compiler version.
有没有人遇到过这个。我正在使用基于 Eclipse 4.2 (Juno) 的 GGTS
最佳答案
从 GGTS 中的 Dashboard/Extensions 安装 Groovy Compiler 并在 Window -> Preferences -> Groovy -> Compiler to 2.x 下更改编译器
关于grails - 不兼容的 groovy 编译器版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14473609/