我正在尝试使用Mockito和PowerMockito进行单元测试,但是它抛出以下异常:
Exception in thread "main" java.lang.NoClassDefFoundError: org/mockito/exceptions/Reporter
每次我尝试运行测试时都会出现这个错误。这是我的依赖项:
testCompile 'org.mockito:mockito-core:2.8.9'
testCompile 'org.powermock:powermock-api-mockito2:1.6.5'
testCompile 'org.powermock:powermock-module-junit4:1.7.4'
有人知道怎么修复它吗?