错误:与项目'中的依赖项'org.objenesis:objenesis'发生冲突

时间:2019-01-24 06:48:18

标签: unit-testing android-studio mockito robolectric powermockito

Error comes when adding mockito dependency.
 testCompile "org.mockito:mockito-core:2.+"

错误:项目':combine'中与依赖项'org.objenesis:objenesis'发生冲突。应用(1.3)和测试应用(2.6)的已解决版本不同。有关详细信息,请参见http://g.co/androidstudio/app-test-app-conflict

此问题通过添加- configuration.all {resolutionStrategy {强制'org.objenesis:objenesis:2.1'}}

    How it is resolved by adding ?
configurations.all { resolutionStrategy { force 'org.objenesis:objenesis:2.1' } }

0 个答案:

没有答案