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' } }