Mockito AbstractMethodError on initMocks

前端 未结 5 1501
长发绾君心
长发绾君心 2020-12-17 17:16

So I\'ve been struggling pretty much all day trying to get Mockito to work for my Android project. I added everything to my Gradle build file:

androidTestCom         


        
5条回答
  •  一个人的身影
    2020-12-17 17:52

    For me it helped to use newest dexmaker (and remove all other powermock/mockito dependencies):

        androidTestCompile 'com.linkedin.dexmaker:dexmaker-mockito:2.2.0'
    

提交回复
热议问题