This is a strange problem, so I will give a resolution that first worked for me, and then tried to explain what I think is happening.
A quick fix is to update the dependencies of the support library in the configuration of the test assembly:
androidTestCompile 'com.android.support:support-v4:22.1.1'
androidTestCompile 'com.android.support:appcompat-v7:22.1.1'
androidTestCompile 'com.android.support:cardview-v7:22.1.1'
androidTestCompile 'com.android.support:gridlayout-v7:22.1.1'
androidTestCompile 'com.android.support:recyclerview-v7:22.1.1'
This should fix your problem.
: , espresso-contrib:2.1 com.android.support:recyclerview-v7:22.0.0. , Gradle : : ./gradlew app:dependencies. - :
+
| +
| | \
| +
| \
, app: dependencyInsight:
./gradlew app:dependencyInsight --configuration androidTestCompile --dependency recyclerview-v7
com.android.support:recyclerview-v7:22.0.0
\--- com.android.support.test.espresso:espresso-contrib:2.1
\--- androidTestCompile
() recyclerview-v7, . androidTestCompile Gradle . :
com.android.support:recyclerview-v7:22.1.1 (conflict resolution)
\--- androidTestCompile
com.android.support:recyclerview-v7:22.0.0 -> 22.1.1
\--- com.android.support.test.espresso:espresso-contrib:2.1
\--- androidTestCompile