导入其他groovy脚本 - 获取错误

jro*_*004 2 groovy

我正在尝试构建一个包含常用方法的groovy类.得到此错误并且不确定如何修复

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Compilation incomplete: expected to find the class pages.manage.Common in file:/Users/jsmithers/groovy/Development/groovy/automation/qa-automation/pages/manage/Common.groovy, but the file contains the classes: Common
Run Code Online (Sandbox Code Playgroud)

这是我的其他脚本中的导入行

import pages.manage.*
Run Code Online (Sandbox Code Playgroud)

思考?

Eri*_*agt 6

您需要在包含的脚本中指定包,例如'package pages.manage'.