When I run the following code:
public class ActivityTest extends ActivityInstrumentationTestCase2 { .... public void testCanCreat
I encountered the same error with EasyMock and eventually traced it to an absence of dexmaker. I solved it with the following dependency:
androidTestCompile "com.google.dexmaker:dexmaker:1.2"
That might work for mockito as well