我希望在我的 Android 应用程序中使用 Cucumber。我有以下依赖项:
androidTestImplementation 'info.cukes:cucumber-android:1.2.5'
androidTestImplementation 'info.cukes:cucumber-picocontainer:1.2.5'
testImplementation 'io.cucumber:cucumber-java8:4.2.0'
testImplementation 'io.cucumber:cucumber-junit:4.2.0'
我有一个 Runner 类:
@RunWith(Cucumber.class)
但是,它提示:
Cannot resolve symbol 'Cucumber'
当我手动添加 import cucumber.api.junit.Cucumber;
时,它会出于同样的原因进行提示。这个库中似乎不存在 Cucumber.class。
我在这里错过了什么?
最佳答案
明白了。它位于:androidTestImplementation 'info.cukes:cucumber-junit:1.2.5'
关于java - 无法解析符号 'Cucumber',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54926222/