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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -