IntelliJ IDEA 2016.1 Help

Compiler: Gradle-Android Compiler

File | Settings | Build, Execution, Deployment | Compiler | Gradle-Android Compiler

Use this page to specify settings for compiling Android-Gradle projects.

Compile independent modules in parallel (may require larger heap size)Select this check box if you need to compile independent modules in parallel.
For more information, see decoupled projects.
VM OptionsIn this field specify VM options for your Gradle compiler.

When specifying the options, follow these rules:

  • Use spaces to separate individual options, for example, -client -ea -Xmx1024m.
  • If an option includes spaces, enclose the spaces or the argument that contains the spaces in double quotes, for example, some" "arg or "some arg".
  • If an option includes double quotes (e.g. as part of the argument), escape the double quotes by means of the backslashes, for example, -Dmy.prop=\"quoted_value\".
Command-line OptionsUse this field to set Gradle command-line options. For more information, see the Gradle command-line options page.
Make project automatically (only works while not running/debugging)Select this check box to automatically make (compile) the project on every save or autosave.
Configure on demandThis check box is selected by default. Configuration on demand mode attempts to configure only projects that are relevant for requested tasks. This way, the configuration time of a large multi-project build is greatly improved. For more information, refer to the Gradle configuration on demand page.

See Also

Last modified: 13 July 2016