在UI和UT测试用例中需要power mock和mockito,
testCompile "org.mockito:mockito-core:2.8.9" // PowerMockito works on 2.8.9
testCompile "org.powermock:powermock-module-junit4:1.7.3"
testCompile "org.powermock:powermock-api-mockito2:1.7.0RC2"
这需要在UI测试中
androidTestCompile "org.mockito:mockito-core:2.8.9" // PowerMockito works on 2.8.9
androidTestCompile "org.powermock:powermock-module-junit4:1.7.3"
androidTestCompile "org.powermock:powermock-api-mockito2:1.7.0RC2"
实现两者都会导致无法合并dex错误
在build.gradle中
// multidex enabled true
//包含库编译'com.android.support:multidex:1.0.2'
如何解决这个问题?并在UI和UT中使用库?