我收到以下错误:
> XXX Created runtime cucumber.runtime.RuntimeOptions@477b4cdf
> cucumber.runtime.CucumberException: java.lang.NoSuchMethodException:
> cucumber.runtime.SerenityBackend.<init>(cucumber.runtime.io.ResourceLoader,
>
> io.cucumber.stepexpression.TypeRegistry)
> at cucumber.runtime.Reflections.newInstance(Reflections.java:53)
> at cucumber.runtime.Reflections.instantiateSubclasses(Reflections.java:35)
> at cucumber.runtime.Runtime.loadBackends(Runtime.java:89)
> at cucumber.runtime.Runtime.<init>(Runtime.java:42)
> at net.serenitybdd.cucumber.CucumberWithSerenityRuntime.createSerenityEnabledRuntime(CucumberWithSerenityRuntime.java:38)
> at net.serenitybdd.cucumber.CucumberWithSerenityRuntime.using(CucumberWithSerenityRuntime.java:28)
> at net.serenitybdd.cucumber.CucumberWithSerenity.createRuntime(CucumberWithSerenity.java:58)
> at cucumber.api.junit.Cucumber.<init>(Cucumber.java:63)
> at net.serenitybdd.cucumber.CucumberWithSerenity.<init>(CucumberWithSerenity.java:39)
> . . .
>
> at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
> Caused by: java.lang.NoSuchMethodException: cucumber.runtime.SerenityBackend.<init>(cucumber.runtime.io.ResourceLoader,
> io.cucumber.stepexpression.TypeRegistry)
> at java.lang.Class.getConstructor0(Class.java:3082)
> at java.lang.Class.getConstructor(Class.java:1825)
> at cucumber.runtime.Reflections.newInstance(Reflections.java:45)
> ... 22 more
>
> Process finished with exit code -1
这是与Serenity合作的Maven项目。
我希望你能帮助我解决错误,我将非常感激