我使用assertj来做一些espresso中不允许的断言但是我不明白这里的问题,我做了什么说的 here
build.gradle
dependencies {
// Android Tests
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestCompile 'com.android.support.test:runner:0.5'
// RecyclerView support
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2') {
// Necessary to avoid version conflicts
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'support-annotations'
exclude module: 'recyclerview-v7'
}
androidTestCompile 'com.squareup.assertj:assertj-android:1.1.1'
androidTestCompile 'com.squareup.assertj:assertj-android-recyclerview-v7:1.1.1'...
我有什么遗失的吗?
答案 0 :(得分:0)
试试这个:
testCompile 'com.squareup.assertj:assertj-android-recyclerview-v7:1.1.1@aar'
答案 1 :(得分:0)
@Danilo Mendes:androidTestCompile
对我有用。非常感谢。
androidTestCompile 'com.squareup.assertj:assertj-android-recyclerview-v7:1.1.1@aar'