Skip to content

Commit c67207a

Browse files
Merge pull request circleci#3291 from erikhuizinga/patch-1
Simplify Android OOM instructions
2 parents b172732 + 4c1fd8a commit c67207a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

jekyll/_cci2/language-android.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,13 @@ with the basics of customizing the JVM's memory usage, consider reading the
252252
If you are using [Robolectric](http://robolectric.org/) for testing you may need to make tweaks to gradle's
253253
use of memory. When the gradle vm is forked for tests it does not receive
254254
previously customized JVM memory parameters. You will need to supply Gradle with
255-
JVM memory paramaters for tests like so in your `build.gradle` file.
255+
additional JVM heap for tests in your `build.gradle` file by adding `android.testOptions.unitTests.all { maxHeapSize = "1024m" }`. You can also add `all { maxHeapSize = "1024m" }` to your existing Android config block, which could look like so after the addition:
256256

257-
```
257+
```groovy
258258
android {
259259
testOptions {
260260
unitTests {
261-
returnDefaultValues = true
262-
includeAndroidResources = true
261+
// Any other configurations
263262
264263
all {
265264
maxHeapSize = "1024m"

0 commit comments

Comments
 (0)