0
這是什麼原因造成的?「無法解析類groovy.io.FileType」錯誤
$ echo -e "import groovy.io.FileType;\nprintln 'hello'" > foo.groovy
$ groovy foo.groovy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, /work/fun/BitMarket/database/foo.groovy: 1: unable to resolve class groovy.io.FileType
@ line 1, column 1.
import groovy.io.FileType;
^
1 error
我的Groovy版本是1.6.4。這個課程是在更高版本中添加的嗎?