Android compilers
Windows/Linux: File | Settings | Build, Execution, Deployment | Compiler | Android Compilers
macOS: IntelliJ IDEA | Settings | Build, Execution, Deployment | Compiler | Android Compilers
CtrlAlt0S or
Use this page to configure the behavior of the Android dx tool and the ProGuard tool. This tool converts compiled class files to executable .dex files in the Dalvik format for further execution in the Android environment.
This functionality relies on the Android plugin, which you need to install and enable.
Press CtrlAlt0S to open settings and then select Plugins.
Open the Marketplace tab, find the Android plugin, and click Install (restart the IDE if prompted).
In this area, configure the behaviour of the Android dx tool that converts the class files to Dalvik byte code.
Item | Description |
---|---|
Maximum heap size | Use this spin box to control the size of the heap available to the process that launches the compiler. If you are compiling a particularly large or complex project, you may get out-of-memory errors and be required to increase the amount of memory allocated to the compiler. |
Additional VM options | In this field, specify the string to be passed to the Dalvik Virtual Machine for launching the Android application. If necessary, click When specifying JVM options, follow these rules:
|
Optimize |
|
Force jumbo mode | Select this checkbox to increase the default number of strings allowed in .dex files. By default, the checkbox is cleared. |
Add "--core-library" flag | Select this checkbox to enable containing classes from certain packages as input files. The packages are as follows: |
In this area, configure the behaviour of the ProGuard tool.
Item | Description |
---|---|
VM options | In this field, specify the additional options for running the ProGuard tool. For example, to increase the default ProGuard heap size, type |
Thanks for your feedback!