Cucumber V4 [io.cucumber] is not identifying @Given/When/Then and giving error “The import cucumber.api.java.en.When cannot be resolved”
问题 I am migrating from Cucumber Version 1.2.4 [ <groupId>info.cukes</groupId> ] to V.4.2.2 <groupId>io.cucumber</groupId> . After this, Cucumber Framework is not able to identify @Given/When/Then annotations and given error – The import cucumber.api.java.en.Given/When/Then cannot be resolved Eclipse suggesting to add below dependency. But my thought is when I am migrating to Cucumber V4( io.cucumber ) then why shall I add dependency of V1.2.4( info.cukes ). Can someone suggest which is the