1

我使用 assertj 做一些意式浓缩咖啡中不允许的断言,但我不明白这里的问题,我做了 这里所说的。

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'...

有什么我想念的吗?

4

2 回答 2

0

@Danilo Mendes:androidTestCompile它对我有用。非常感谢伙计。

androidTestCompile 'com.squareup.assertj:assertj-android-recyclerview-v7:1.1.1@aar'
于 2017-01-26T23:30:08.607 回答
0

尝试这个:

testCompile 'com.squareup.assertj:assertj-android-recyclerview-v7:1.1.1@aar'
于 2016-08-20T22:35:16.787 回答