Grails无法解析类org.grails.compiler.injection.TraitInjectionSupport

时间:2016-04-28 07:03:00

标签: java grails grails-3.0

我已经开始学习Grails了。出于项目特定目的,我在Ubuntu中安装了Grails 3.0.0。每当我在IDE(IntelliJ)中启动grails项目时。我收到以下错误

| Error Failed to compile idea-list-injected-traits.groovy: startup failed:
idea-list-injected-traits.groovy: 2: unable to resolve class org.grails.compiler.injection.TraitInjectionSupport
 @ line 2, column 1.
   import org.grails.compiler.injection.TraitInjectionSupport
   ^

1 error
 (Use --stack trace to see the full trace)
| Error occurred running Grails CLI: null (Use --stack trace to see the full trace)

Process finished with exit code 1

我该如何解决?我是Grails的全新人物。感谢。

1 个答案:

答案 0 :(得分:0)

尝试删除

~/.grails/repository