Specifies additional flags that can be passed to Gradle (the build system used to compile Android).
This property is for advanced developers only and they are responsible for using it correctly.
By default, it 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.
||Disables gradle's daemon. Alternatively, you can use --daemon flag for enabling it, significantly speeding up following builds significantly. By default is disabled so as not to interfere with other Android build processes.
||Indicates to execute the build task in parallel (i.e. compile mains projects in parallel).
||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) to allocate for Gradle Daemon.
- 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). Consequently, 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).
- --offline:Specifies that the build should operate without accessing network resources. DOC:Command-Line Interface.
This property applies only at design time.
To apply the corresponding changes when the property value is configured, execute a Build All.