VerifyError using Mockito 1.9.5 and DexMaker-Mockito-1.0

后端 未结 5 581
渐次进展
渐次进展 2021-01-03 22:56

Like many others I was excited to hear that Mockito now works with Android and followed this tutorial to see it with my own eyes. Everything seemed fan-flapping-tastic and I

5条回答
  •  执笔经年
    2021-01-03 23:13

    Hi I had the same problem and I found this article really usefull!

    http://corner.squareup.com/2012/10/mockito-android.html

    The key piece of information is:

    To use Mockito on a device or emulator, you’ll need to add three .jar files to your test project’s libs directory: mockito-all-1.9.5.jar, dexmaker-1.0.jar, and dexmaker-mockito-1.0.jar.

提交回复
热议问题