# GeneratesApk

# GeneratesApk

```
interface GeneratesApk
```

|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.variant.GeneratesApk](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk#) |

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApplicationVariant),[DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/DynamicFeatureVariant),[GeneratesTestApk](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesTestApk) |-------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------| | [ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApplicationVariant)       | Properties for the main Variant of an application. | | [DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/DynamicFeatureVariant) | <br />                                             | | [GeneratesTestApk](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesTestApk)           | <br />                                             | |

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Indirect Subclasses [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest),[AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/component/AndroidTest.html#),[TestVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestVariant) |-------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------| | [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidTest)         | Properties for the android test Variant of a module.                                                                                | | [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/component/AndroidTest.html#) | <br />                                                                                                                              | | [TestVariant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/TestVariant)         | [Variant](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/Variant)for test-only modules. | |

Cross cutting interface for[com.android.build.api.component.Component](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/component/Component.html#)subtypes that are producing APK files.

## Summary

|                                                                                                                                                                                                                                        ### Properties                                                                                                                                                                                                                                         ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[AndroidResources](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/AndroidResources)                                               | [androidResources](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk#androidResources:com.android.build.api.variant.AndroidResources) Variant's android resources processing configuration, initialized by the corresponding global DSL element. |
| abstract[Provider](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\> | [applicationId](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk#applicationId:org.gradle.api.provider.Provider) Variant's application ID as present in the final manifest file of the APK.                                                     |
| abstract[ApkPackaging](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/ApkPackaging)                                                       | [packaging](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk#packaging:com.android.build.api.variant.ApkPackaging) Variant's packagingOptions, initialized by the corresponding global DSL element.                                             |
| abstract[Renderscript](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/Renderscript)?                                                      | [renderscript](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/variant/GeneratesApk#renderscript:com.android.build.api.variant.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.  

### renderscript

```
abstract val renderscript: Renderscript?
```

Variant specific settings for the renderscript compiler. This will return null when[com.android.build.api.dsl.BuildFeatures.renderScript](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/dsl/BuildFeatures.html#renderScript:kotlin.Boolean)is false.