Espresso-web import causes duplicateFileException

后端 未结 2 1477
广开言路
广开言路 2021-01-17 10:14

I am using Android Espresso. I needed espresso-web to work with webviews. I set my espresso according to google website.

https://google.github.io/android-testing-sup

相关标签:
2条回答
  • 2021-01-17 10:47

    Try the other way around. Do not use espresso-core but just espresso-web. Example:

    Espresso Official Test Kit Blog Example

    0 讨论(0)
  • 2021-01-17 11:00

    Adding

    packagingOptions {
        exclude 'META-INF/maven/com.google.guava/guava/pom.properties'
        exclude 'META-INF/maven/com.google.guava/guava/pom.xml'
    }
    

    to build.gradle file worked for me.

    0 讨论(0)
提交回复
热议问题