Loading docs/html/tools/building/building-studio.jd +16 −10 Original line number Diff line number Diff line Loading @@ -548,21 +548,25 @@ parent.link=index.html When you deploy a clean build, Android Studio instruments your app to allow Instant Run to push code and resource updates. Although updating the running app happens much more quickly, the first build may take longer to complete. You can improve the build process by configuring a few DEX options, such as <code>maxProcessCount</code> and <code>javaMaxHeapSize</code>. You can improve the build process by configuring a few <a class= "external-link" href= "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html"> <code>DexOptions</code></a> settings: </p> <dl> <dt> <code>maxProcessCount</code> <a class="external-link" href= "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:maxProcessCount"> <code>maxProcessCount</code></a> </dt> <dd> Sets the maximum number of DEX processes that can be started concurrently. If the Gradle daemon is already running, you need to stop the process before initializing it with a new maximum process count. You can terminate the Gradle daemon by calling one of the following from the <em>Terminal</em> window: Sets the maximum number of DEX processes that can be started concurrently. If the Gradle daemon is already running, you need to stop the process before initializing it with a new maximum process count. You can terminate the Gradle daemon by calling one of the following from the <em>Terminal</em> window: <ul> <li>On Windows, call <code>gradlew --stop</code> </li> Loading @@ -573,7 +577,9 @@ parent.link=index.html </dd> <dt> <code>javaMaxHeapSize</code> <a class="external-link" href= "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:javaMaxHeapSize"> <code>javaMaxHeapSize</code></a> </dt> <dd> Loading @@ -593,7 +599,7 @@ parent.link=index.html android { ... dexOptions { maxProcessCount 4 maxProcessCount 4 // this is the default value javaMaxHeapSize "2g" } } Loading docs/html/tools/revisions/gradle-plugin.jd +15 −7 Original line number Diff line number Diff line Loading @@ -28,14 +28,20 @@ page.title=Android Plugin for Gradle Release Notes </h2> <ol> <li> <a class="external-link" href= "http://google.github.io/android-gradle-dsl/current/">Android Plugin DSL Reference</a> </li> <li> <a href="{@docRoot}sdk/installing/studio-build.html">Build System Overview</a> </li> <li> <a href="{@docRoot}tools/building/plugin-for-gradle.html">Android Plugin for Gradle</a> <a href="{@docRoot}tools/building/plugin-for-gradle.html">Android Plugin for Gradle</a> </li> </ol> </div> Loading Loading @@ -166,15 +172,17 @@ distributionUrl = https\://services.gradle.org/distributions/gradle-2.10-all.zip connected device. </li> <li>Added <code>maxProcessCount</code> to control how many slave dex processes can be spawned concurrently. The following code, in the module-level <li>Added <a class="external-link" href= "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:maxProcessCount"> <code>maxProcessCount</code></a> to control how many slave dex processes can be spawned concurrently. The following code, in the module-level <code>build.gradle</code> file, sets the maximum number of concurrent processes to 4: <pre> android { ... dexOptions { maxProcessCount = 4 maxProcessCount = 4 // this is the default value } } </pre> Loading @@ -192,11 +200,11 @@ android { ... buildTypes { debug { minifyEnabed true minifyEnabled true useProguard false } release { minifyEnabed true minifyEnabled true useProguard true // this is a default setting } } Loading Loading
docs/html/tools/building/building-studio.jd +16 −10 Original line number Diff line number Diff line Loading @@ -548,21 +548,25 @@ parent.link=index.html When you deploy a clean build, Android Studio instruments your app to allow Instant Run to push code and resource updates. Although updating the running app happens much more quickly, the first build may take longer to complete. You can improve the build process by configuring a few DEX options, such as <code>maxProcessCount</code> and <code>javaMaxHeapSize</code>. You can improve the build process by configuring a few <a class= "external-link" href= "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html"> <code>DexOptions</code></a> settings: </p> <dl> <dt> <code>maxProcessCount</code> <a class="external-link" href= "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:maxProcessCount"> <code>maxProcessCount</code></a> </dt> <dd> Sets the maximum number of DEX processes that can be started concurrently. If the Gradle daemon is already running, you need to stop the process before initializing it with a new maximum process count. You can terminate the Gradle daemon by calling one of the following from the <em>Terminal</em> window: Sets the maximum number of DEX processes that can be started concurrently. If the Gradle daemon is already running, you need to stop the process before initializing it with a new maximum process count. You can terminate the Gradle daemon by calling one of the following from the <em>Terminal</em> window: <ul> <li>On Windows, call <code>gradlew --stop</code> </li> Loading @@ -573,7 +577,9 @@ parent.link=index.html </dd> <dt> <code>javaMaxHeapSize</code> <a class="external-link" href= "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:javaMaxHeapSize"> <code>javaMaxHeapSize</code></a> </dt> <dd> Loading @@ -593,7 +599,7 @@ parent.link=index.html android { ... dexOptions { maxProcessCount 4 maxProcessCount 4 // this is the default value javaMaxHeapSize "2g" } } Loading
docs/html/tools/revisions/gradle-plugin.jd +15 −7 Original line number Diff line number Diff line Loading @@ -28,14 +28,20 @@ page.title=Android Plugin for Gradle Release Notes </h2> <ol> <li> <a class="external-link" href= "http://google.github.io/android-gradle-dsl/current/">Android Plugin DSL Reference</a> </li> <li> <a href="{@docRoot}sdk/installing/studio-build.html">Build System Overview</a> </li> <li> <a href="{@docRoot}tools/building/plugin-for-gradle.html">Android Plugin for Gradle</a> <a href="{@docRoot}tools/building/plugin-for-gradle.html">Android Plugin for Gradle</a> </li> </ol> </div> Loading Loading @@ -166,15 +172,17 @@ distributionUrl = https\://services.gradle.org/distributions/gradle-2.10-all.zip connected device. </li> <li>Added <code>maxProcessCount</code> to control how many slave dex processes can be spawned concurrently. The following code, in the module-level <li>Added <a class="external-link" href= "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:maxProcessCount"> <code>maxProcessCount</code></a> to control how many slave dex processes can be spawned concurrently. The following code, in the module-level <code>build.gradle</code> file, sets the maximum number of concurrent processes to 4: <pre> android { ... dexOptions { maxProcessCount = 4 maxProcessCount = 4 // this is the default value } } </pre> Loading @@ -192,11 +200,11 @@ android { ... buildTypes { debug { minifyEnabed true minifyEnabled true useProguard false } release { minifyEnabed true minifyEnabled true useProguard true // this is a default setting } } Loading