Gradle Options property

Official Content
This documentation is valid for:
Specifies additional flags that can be passed to Gradle (the build system used to compile Android). This property is for advanced developers only and it is their responsibility its right usage.

Description

By default has the following command

--no-daemon --parallel -Dorg.gradle.jvmargs=-Xmx$(ALLOC_SIZE)m

Where $(ALLOC_SIZE) is 3072. To disable this behavior simply remove '--daemon' flag.

Flag Description
--no-daemon Disables gradle's daemon. Alternatively, you can use --daemon flag for enabling it, speeding up following builds significantly. By default is disabled so as not to interfere with other Android's building processes.
 
--parallel Indicates to execute build task in parallel (i.e. compile mains projects in parallel).
 
-Dorg.gradle.jvmargs=<arguments> Indicates the JVM arguments to be used by the daemon process. Possible arguments can be found here.
In particular, -Xmx2048m sets the maximum amount of memory (on 2GB) that is able to allocate for Gradle Daemon.

Notes

  • Android's Gradle plugin will use a special option DexInProcess when Gradle's daemon VM has enough memory allocated to speed up its build time significantly. When the property Multidex Build property is enabled, the amount of memory required to enable DexInProcess increases by 1GB (since this property modifies the javaMaxHeapSize default value). As a consequence, the $(ALLOC_SIZE) is set to 3GB (-Xmx3072m). Otherwise, the value used is 2GB (-Xmx2048m).
  • As of GeneXus 15 Upgrade 9 daemon flag is disabled (--no-daemon).
    Previous upgrades have this flag enable (--daemon).

Scope

Platforms: Smart Devices(Android)

See Also

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.