因此,从Android P开始,可以模拟UI / Espresso测试的最终类。太棒了。
经过一些研究,我使用com.linkedin.dexmaker:dexmaker-mockito-inline-extended来模拟期末课程。
然而,它使用了mockito的旧版本(在撰写本文时使用了2.28.0),而Mockito最近发布了3.15.13版本。
直到现在,我还好使用一个旧版本的Mockito,直到我偶然发现问题解决了在以后的版本。
以下分级配置:
androidTestImplementation "com.linkedin.dexmaker:dexmaker-mockito-inline-extended:2.28.0"
androidTestImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
androidTestImplementation "org.mockito:mockito-android:3.5.13"在编译时生成此错误:
在与操作系统无关的路径'mockito-extensions/org.mockito.plugins.MockMaker'.中发现了多个
文件
我相信我知道这意味着某些依赖关系使用相同的依赖项。我试过使用排除,但没有成功。
有谁想办法解决这个问题吗?谢谢你的帮助!
发布于 2020-11-09 22:31:57
移除androidTestImplementation "org.mockito:mockito-android:3.5.13"是为了我。他们的github https://github.com/linkedin/dexmaker/issues/149有问题
https://stackoverflow.com/questions/64358831
复制相似问题