Stay organized with collections
Save and categorize content based on your preferences.
GeneratesApk
interface GeneratesApk
Known Indirect Subclasses
|
Cross cutting interface for com.android.build.api.component.Component subtypes that are
producing APK files.
Summary
Properties
|
abstract AndroidResources |
Variant's android resources processing configuration, initialized by the corresponding
global DSL element.
|
abstract Provider<String> |
Variant's application ID as present in the final manifest file of the APK.
|
abstract ApkPackaging |
Variant's packagingOptions, initialized by the corresponding global DSL element.
|
abstract Renderscript? |
Variant specific settings for the renderscript compiler.
|
Properties
androidResources
abstract val androidResources: AndroidResources
Variant's android resources processing configuration, initialized by the corresponding
global DSL element.
applicationId
abstract val applicationId: Provider<String>
Variant's application ID as present in the final manifest file of the APK.
packaging
abstract 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```\ninterface GeneratesApk\n```\n\n|-------------------------------------------------|\n| [com.android.build.api.variant.GeneratesApk](#) |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ApplicationVariant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApplicationVariant), [DynamicFeatureVariant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/DynamicFeatureVariant), [GeneratesTestApk](/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesTestApk) |--------------------------------------------------------------------------------------------------------------|----------------------------------------------------| | [ApplicationVariant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApplicationVariant) | Properties for the main Variant of an application. | | [DynamicFeatureVariant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/DynamicFeatureVariant) | \u003cbr /\u003e | | [GeneratesTestApk](/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesTestApk) | \u003cbr /\u003e | |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Indirect Subclasses [AndroidTest](/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest), [AndroidTest](../component/AndroidTest.html#), [TestVariant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestVariant) |------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------| | [AndroidTest](/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest) | Properties for the android test Variant of a module. | | [AndroidTest](../component/AndroidTest.html#) | \u003cbr /\u003e | | [TestVariant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestVariant) | [Variant](/reference/tools/gradle-api/7.0/com/android/build/api/variant/Variant) for test-only modules. | |\n\nCross cutting interface for [com.android.build.api.component.Component](../component/Component.html#) subtypes that are\nproducing APK files.\n\nSummary\n-------\n\n| ### Properties ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [AndroidResources](/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidResources) | [androidResources](#androidResources:com.android.build.api.variant.AndroidResources) Variant's android resources processing configuration, initialized by the corresponding global DSL element. |\n| abstract [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](#applicationId:org.gradle.api.provider.Provider) Variant's application ID as present in the final manifest file of the APK. |\n| abstract [ApkPackaging](/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApkPackaging) | [packaging](#packaging:com.android.build.api.variant.ApkPackaging) Variant's packagingOptions, initialized by the corresponding global DSL element. |\n| abstract [Renderscript](/reference/tools/gradle-api/7.0/com/android/build/api/variant/Renderscript)? | [renderscript](#renderscript:com.android.build.api.variant.Renderscript) Variant specific settings for the renderscript compiler. |\n\nProperties\n----------\n\n### androidResources\n\n```\nabstract val androidResources: AndroidResources\n```\n\nVariant's android resources processing configuration, initialized by the corresponding\nglobal DSL element. \n\n### applicationId\n\n```\nabstract val 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```\nabstract val packaging: ApkPackaging\n```\n\nVariant's packagingOptions, initialized by the corresponding global DSL element. \n\n### renderscript\n\n```\nabstract val renderscript: Renderscript?\n```\n\nVariant specific settings for the renderscript compiler. This will return null when\n[com.android.build.api.dsl.BuildFeatures.renderScript](../dsl/BuildFeatures.html#renderScript:kotlin.Boolean) is false."]]