Open GoogleCodeExporter opened 9 years ago
Hey, thanks for posting this. I believe I have it figured out:
Test Runner:
android {
...
defaultConfig {
...
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
}
Dependencies:
dependencies {
// Hamcrest - kept at 1.1, 1.3 is latest
androidTestCompile 'org.hamcrest:hamcrest-core:1.1'
androidTestCompile 'org.hamcrest:hamcrest-integration:1.1'
androidTestCompile 'org.hamcrest:hamcrest-library:1.1'
androidTestCompile ('com.android.support.test:testing-support-lib:0.1') {
exclude module: 'hamcrest-core'
}
androidTestCompile ('com.android.support.test.espresso:espresso-core:2.0') {
exclude module: 'hamcrest-core'
}
androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.0'
androidTestCompile('junit:junit-dep:4.10') {
exclude module: 'hamcrest-core'
}
}
Let me know if this has helped you!
Original comment by jaredsbu...@gmail.com
on 2 Feb 2015 at 5:20
Original issue reported on code.google.com by
mahendra...@impigertech.com
on 22 Jan 2015 at 2:09