Stay organized with collections
Save and categorize content based on your preferences.
AaptOptions
@Incubating interface AaptOptions : AndroidResources
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# AaptOptions\n===========\n\n```\n@Incubating interface AaptOptions : AndroidResources\n```\n\n|--------------------------------------------|\n| [com.android.build.api.dsl.AaptOptions](#) |\n\nSummary\n-------\n\n| ### Inherited functions ||\n|---|---|\n| From class [AndroidResources](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources) |------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [additionalParameters](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources#additionalParameters(kotlin.String))`(`params:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Adds additional parameters to be passed to `aapt`. \u003cbr /\u003e | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [additionalParameters](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources#additionalParameters(kotlin.String))`(`vararg` `params:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Adds additional parameters to be passed to `aapt`. \u003cbr /\u003e | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [noCompress](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources#noCompress(kotlin.String))`(`noCompress:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Adds extensions of files that will not be stored compressed in the APK. Equivalent of the -0 flag. See `aapt --help` \u003cbr /\u003e | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [noCompress](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources#noCompress(kotlin.String))`(`vararg` `noCompress:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Adds extensions of files that will not be stored compressed in the APK. Equivalent of the -0 flag. See `aapt --help` \u003cbr /\u003e | ||\n\n| ### Inherited properties ||\n|---|---|\n| From class [AndroidResources](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources) |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\u003e | [additionalParameters](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources#additionalParameters:kotlin.collections.MutableList) List of additional parameters to pass to `aapt`. \u003cbr /\u003e | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [failOnMissingConfigEntry](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources#failOnMissingConfigEntry:kotlin.Boolean) Forces aapt to return an error if it fails to find an entry for a configuration. See `aapt --help` \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [ignoreAssetsPattern](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources#ignoreAssetsPattern:kotlin.String) Pattern describing assets to be ignored. See `aapt --help` \u003cbr /\u003e | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [namespaced](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources#namespaced:kotlin.Boolean) Indicates whether the resources in this sub-project are fully namespaced. This property is incubating and may change in a future release. \u003cbr /\u003e | | [MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\u003e | [noCompress](/reference/tools/gradle-api/7.0/com/android/build/api/dsl/AndroidResources#noCompress:kotlin.collections.MutableCollection) Extensions of files that will not be stored compressed in the APK. Adding an empty extension, i.e., setting `noCompress ''` will trivially disable compression for all files. Equivalent of the -0 flag. See `aapt --help` \u003cbr /\u003e | ||"]]