IntelliJ IDEA 2018.1 Help

Suppressing Compression of Resources

By default, the Android Asset Packaging Tool (aapt) compresses resources during packaging. However you can have resources of a certain type included in the .apk file uncompressed by changing the settings of the Android facet.

To suppress compressing resources of a certain type

  1. Select File | Project structure from the main menu.
  2. In the left-hand pane, select Modules, then in the central pane click the Android facet under the module with the resources to be packaged uncompressed.
  3. In the right-hand pane, switch to the Compiler tab.
  4. In the Additional command line parameters text box, type -0 <file extension for this type of resources>. As a result, all files with the specified extension will be excluded from compression. If the set of additional parameters does not fit into the text box, click shift enter button and specify the parameters in the dialog that opens.

    For example, if you want to include resources of a certain type in an uncompressed format, type -0 <file extension for this type of resources>.

Last modified: 7 February 2018

See Also