diff options
| author | 2016-08-17 16:17:11 -0700 | |
|---|---|---|
| committer | 2016-08-17 16:23:30 -0700 | |
| commit | eee3518d11dced613c6578d2df9be000a1faab1e (patch) | |
| tree | 629c25c5e51d2f744bf291e40434daddb6e35061 | |
| parent | 5e086dc3bb4d516489f12339a86e0a1bdd4b2c5f (diff) | |
add workaround for annotations dependency conflict with espresso
Change-Id: Ia5f06e35b034d207f19d061b27ddbecd66012130
| -rw-r--r-- | docs/html/training/testing/unit-testing/instrumented-unit-tests.jd | 13 |
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= |