When I run the following code:
public class ActivityTest extends ActivityInstrumentationTestCase2 { .... public void testCanCreat
For me this eventually worked:
androidTestCompile "org.mockito:mockito-core:1.10.19" androidTestCompile "com.crittercism.dexmaker:dexmaker:1.4" androidTestCompile "com.crittercism.dexmaker:dexmaker-mockito:1.4" androidTestCompile "com.crittercism.dexmaker:dexmaker-dx:1.4"