How to get Powermock to work with Dexmaker

前端 未结 3 1062
情书的邮戳
情书的邮戳 2021-01-18 01:13

I am trying to incorporate Powermock as a dependency for my Android tests using the following build.gradle configuration:

dependencies{
    compile \'com.and         


        
3条回答
  •  执笔经年
    2021-01-18 02:18

    you can try to put this in your build.gradle, it solved to me the same problem

    android{
    ...
    
    packagingOptions{
        exclude 'mockito-extensions/org.mockito.plugins.MockMaker'
    }
    
    ...
    
    }
    

提交回复
热议问题