我将模拟依赖添加到build.gradle中:
testImplementation "io.mockk:mockk:1.13.2"
testImplementation "io.mockk:mockk-agent-jvm:1.13.2"现在我想使用导入:
io.mockk.* 这是行不通的,android工作室说:未解决的引用: mockk
发布于 2022-10-19 12:58:25
问题是我在androidTest而不是testUnitTest文件夹中。
https://stackoverflow.com/questions/74121850
复制相似问题