Stay organized with collections
Save and categorize content based on your preferences.
GeneratesApk
interface GeneratesApk
Known indirect subclasses
Cross cutting interface for Component
subtypes that are producing APK files.
Summary
Public properties |
AndroidResources |
Variant's android resources processing configuration, initialized by the corresponding global DSL element.
|
Provider<String> |
Variant's application ID as present in the final manifest file of the APK.
|
ApkPackaging |
Variant's packagingOptions, initialized by the corresponding global DSL element.
|
Renderscript? |
Variant specific settings for the renderscript compiler.
|
Public properties
androidResources
val androidResources: AndroidResources
Variant's android resources processing configuration, initialized by the corresponding global DSL element.
packaging
val packaging: ApkPackaging
Variant's packagingOptions, initialized by the corresponding global DSL element.
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,["# GeneratesApk\n============\n\n\n```\ninterface GeneratesApk\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ApplicationVariant](/reference/tools/gradle-api/7.2/com/android/build/api/variant/ApplicationVariant), [DynamicFeatureVariant](/reference/tools/gradle-api/7.2/com/android/build/api/variant/DynamicFeatureVariant), [GeneratesTestApk](/reference/tools/gradle-api/7.2/com/android/build/api/variant/GeneratesTestApk) \n\n|--------------------------------------------------------------------------------------------------------------|----------------------------------------------------|\n| [ApplicationVariant](/reference/tools/gradle-api/7.2/com/android/build/api/variant/ApplicationVariant) | Properties for the main Variant of an application. |\n| [DynamicFeatureVariant](/reference/tools/gradle-api/7.2/com/android/build/api/variant/DynamicFeatureVariant) | |\n| [GeneratesTestApk](/reference/tools/gradle-api/7.2/com/android/build/api/variant/GeneratesTestApk) | |\n\nKnown indirect subclasses \n[AndroidTest](/reference/tools/gradle-api/7.2/com/android/build/api/variant/AndroidTest), [TestVariant](/reference/tools/gradle-api/7.2/com/android/build/api/variant/TestVariant) \n\n|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [AndroidTest](/reference/tools/gradle-api/7.2/com/android/build/api/variant/AndroidTest) | Properties for the android test Variant of a module. |\n| [TestVariant](/reference/tools/gradle-api/7.2/com/android/build/api/variant/TestVariant) | [Variant](/reference/tools/gradle-api/7.2/com/android/build/api/variant/Variant) for test-only modules. |\n\n*** ** * ** ***\n\nCross cutting interface for [Component](/reference/tools/gradle-api/7.2/com/android/build/api/variant/Component) subtypes that are producing APK files.\n\nSummary\n-------\n\n| ### Public properties ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AndroidResources](/reference/tools/gradle-api/7.2/com/android/build/api/variant/AndroidResources) | [androidResources](/reference/tools/gradle-api/7.2/com/android/build/api/variant/GeneratesApk#androidResources()) Variant's android resources processing configuration, initialized by the corresponding global DSL element. |\n| [Provider](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html)`\u003c`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`\u003e` | [applicationId](/reference/tools/gradle-api/7.2/com/android/build/api/variant/GeneratesApk#applicationId()) Variant's application ID as present in the final manifest file of the APK. |\n| [ApkPackaging](/reference/tools/gradle-api/7.2/com/android/build/api/variant/ApkPackaging) | [packaging](/reference/tools/gradle-api/7.2/com/android/build/api/variant/GeneratesApk#packaging()) Variant's packagingOptions, initialized by the corresponding global DSL element. |\n| [Renderscript](/reference/tools/gradle-api/7.2/com/android/build/api/variant/Renderscript)`?` | [renderscript](/reference/tools/gradle-api/7.2/com/android/build/api/variant/GeneratesApk#renderscript()) Variant specific settings for the renderscript compiler. |\n\nPublic properties\n-----------------\n\n### androidResources\n\n```\nval androidResources: AndroidResources\n```\n\nVariant's android resources processing configuration, initialized by the corresponding global DSL element. \n\n### applicationId\n\n```\nval applicationId: Provider\u003cString\u003e\n```\n\nVariant's application ID as present in the final manifest file of the APK. \n\n### packaging\n\n```\nval packaging: ApkPackaging\n```\n\nVariant's packagingOptions, initialized by the corresponding global DSL element. \n\n### renderscript\n\n```\nval renderscript: Renderscript?\n```\n\nVariant specific settings for the renderscript compiler. This will return null when [com.android.build.api.dsl.BuildFeatures.renderScript](/reference/tools/gradle-api/7.2/com/android/build/api/dsl/BuildFeatures#renderScript()) is false."]]