summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Scott Main <smain@google.com> 2016-08-23 15:42:01 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-08-23 15:42:03 +0000
commit77917a835f5ca315da544a49e533f3cc5575d05d (patch)
tree547a1d4252a35dda1bbca7574720d92a1e82decd
parentc069ed7f8c3d307c9fed2c8d1a81e28152190b5a (diff)
parenteee3518d11dced613c6578d2df9be000a1faab1e (diff)
Merge "add workaround for annotations dependency conflict with espresso" into nyc-dev
-rw-r--r--docs/html/training/testing/unit-testing/instrumented-unit-tests.jd13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/html/training/testing/unit-testing/instrumented-unit-tests.jd b/docs/html/training/testing/unit-testing/instrumented-unit-tests.jd
index 00622ee95f7d..8fc4dcac25d4 100644
--- a/docs/html/training/testing/unit-testing/instrumented-unit-tests.jd
+++ b/docs/html/training/testing/unit-testing/instrumented-unit-tests.jd
@@ -95,6 +95,19 @@ dependencies {
}
</pre>
+<div class="caution">
+<p><strong>Caution:</strong> If your build configuration includes a
+<code>compile</code> dependency for the <code>support-annotations</code>
+library <b>and</b> an <code>androidTestCompile</code> dependency for the
+<code>espresso-core</code> library, your build might fail due to a dependency
+conflict. To resolve, update your dependency for <code>espresso-core</code>
+as follows:</p>
+<pre>
+androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+})
+</pre>
+</div>
<p>
To use JUnit 4 test classes, make sure to specify <a href=