Merge "Docs: Android Plugin DSL Ref 2.0.0 was just published. Added some useful links." into mnc-mr-docs am: 80202c0

am: a1b59e1

* commit 'a1b59e12877bc39ad243605aed9e03cb3c186be0':
  Docs: Android Plugin DSL Ref 2.0.0 was just published. Added some useful links.

Change-Id: Ib4b6eb1225937c37e61ad68df21a7d8918650f53
This commit is contained in:
Adarsh Fernando
2016-04-26 07:55:15 +00:00
committed by android-build-merger
2 changed files with 31 additions and 17 deletions

View File

@@ -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>
@@ -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>
@@ -593,7 +599,7 @@ parent.link=index.html
android {
...
dexOptions {
maxProcessCount 4
maxProcessCount 4 // this is the default value
javaMaxHeapSize "2g"
}
}

View File

@@ -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>
@@ -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>
@@ -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
}
}