android - androidTestCompile mockito givning Error -
i'm trying use mockito instrumentation tests, when add
androidtestcompile 'org.mockito:mockito-core:2.7.22'
i following error:
error:conflict dependency 'org.objenesis:objenesis' in project ':app'. resolved versions app (2.1) , test app (2.5) differ. see http://g.co/androidstudio/app-test-app-conflict details.
i have no clue what's wrong, have no org.objenesis dependency specified anywhere in code (guess comes through mockito).
every help, appreciated.
try this
configurations.all { resolutionstrategy { force 'org.objenesis:objenesis:2.1' } }
or
just exclude in main project. exclude group: 'org.objenesis'
Comments
Post a Comment