出现 Error:Cannot compile Groovy files: no Groovy library is defined for module 'xxxx'
只要在 project structure 中的modules中左上角的 + 号,然后找到groovy添加即可!
具体可参考: http://stackoverflow.com/questions/43450683/errorcannot-compile-groovy-files-no-groovy-library-is-defined-for-module-mypr