What are the correct dependencies for Espresso tests?
问题 On different official Android sites there is different information on how to set up Espresso tests: 1) https://developer.android.com/training/testing/ui-testing/espresso-testing dependencies { // Other dependencies ... androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' } 2) https://developer.android.com/studio/test/ dependencies { // Required for local unit tests (JUnit 4 framework) testCompile 'junit:junit:4.12' // Required for instrumented tests