Hello Group,

I integrated powermock to write test cases for my android app.

Dependencies added in the gradle file are :
    
    androidTestCompile 'junit:junit:4.12'
    androidTestCompile 'org.mockito:mockito-core:2.0.5-beta'
    androidTestCompile ('org.powermock:powermock-api-mockito:1.6.2') {
        exclude module: 'hamcrest-core'
        exclude module: 'objenesis'
    }
    androidTestCompile ('org.powermock:powermock-module-junit4:1.6.2') {
        exclude module: 'hamcrest-core'
        exclude module: 'objenesis'
    }

but when I run the test cases I am getting error:
"com.android.build.api.transform.TransformException: 
java.util.zip.ZipException: duplicate entry: 
org/hamcrest/BaseDescription.class"

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/8c60fd5f-550d-4786-9cef-5e3a49378b3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to