diff options
author | Rich Slogar <rslogar@google.com> | 2015-05-06 01:14:31 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-06 01:14:31 +0000 |
commit | 34e0f6401e66df33ec71df7f76196bbe0eca3183 (patch) | |
tree | 441f64115caefd3df8ed8480fd953ed9b6d9a422 /docs | |
parent | b462da9e3d554deb9ba5b8ca58d5d66797fb54d5 (diff) | |
parent | 84a67c7db75edc192a8975637c99c9a917796ff1 (diff) | |
download | frameworks_base-34e0f6401e66df33ec71df7f76196bbe0eca3183.zip frameworks_base-34e0f6401e66df33ec71df7f76196bbe0eca3183.tar.gz frameworks_base-34e0f6401e66df33ec71df7f76196bbe0eca3183.tar.bz2 |
am 84a67c7d: am 1b5f692d: am 9b4d57e1: Merge "docs: gradle multidex update" into lmp-docs
* commit '84a67c7db75edc192a8975637c99c9a917796ff1':
docs: gradle multidex update
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/tools/building/multidex.jd | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/docs/html/tools/building/multidex.jd b/docs/html/tools/building/multidex.jd index 49cde8c..e441a7c 100644 --- a/docs/html/tools/building/multidex.jd +++ b/docs/html/tools/building/multidex.jd @@ -415,30 +415,40 @@ dependencies { <h2 id="testing">Testing Multidex Apps</h2> <p> - Testing apps that use multidex configuration require some additional steps and configuration. - Since the location of code for classes is not within a single DEX file, instrumentation tests do - not run properly unless configured for multidex. + When using instrumentation tests with multidex apps, additional configuration is required to + enable the test instrumentation. Because the location of code for classes in multidex apps is not + within a single DEX file, instrumentation tests do not run properly unless configured for + multidex. </p> <p> - When testing a multidex app with instrumentation tests, use + To test a multidex app with instrumentation tests, configure the <a href="{@docRoot}reference/com/android/test/runner/MultiDexTestRunner.html"> MultiDexTestRunner</a> from the multidex testing support library. The following sample - {@code build.gradle} file, demonstrates how to configure your build to use this test runner: + {@code build.gradle} file demonstrates how to configure your build to use this test runner: </p> <pre> android { defaultConfig { ... - testInstrumentationRunner "android.support.multidex.MultiDexTestRunner" + testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" } } +</pre> +<p class="note"> + <strong>Note:</strong> With Android Plugin for Gradle versions lower than 1.1, you need to add + the following dependency for <code>multidex-instrumentation</code>: +<pre> dependencies { - androidTestCompile 'com.android.support:multidex-instrumentation:1.0.0' + androidTestCompile('com.android.support:multidex-instrumentation:1.0.1') { + exclude group: 'com.android.support', module: 'multidex' + } } </pre> +</p> + <p> You may use the instrumentation test runner class directly or extend it to fit your testing @@ -455,4 +465,4 @@ public void onCreate(Bundle arguments) { <p class="note"> <strong>Note:</strong> Use of multidex for creating a test APK is not currently supported. -</p>
\ No newline at end of file +</p> |