# GeneratesApk

# GeneratesApk

<br />

```
interface GeneratesApk
```

<br />

Known direct subclasses  
[ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ApplicationVariant),[DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/DynamicFeatureVariant),[GeneratesTestApk](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/GeneratesTestApk)  

|-------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------|
| [ApplicationVariant](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ApplicationVariant)       | Properties for the main Variant of an application. |
| [DynamicFeatureVariant](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/DynamicFeatureVariant) |                                                    |
| [GeneratesTestApk](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/GeneratesTestApk)           |                                                    |

Known indirect subclasses  
[AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/AndroidTest),[TestVariant](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/TestVariant)  

|-----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
| [AndroidTest](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/AndroidTest) | Properties for the android test Variant of a module.                                                                                |
| [TestVariant](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/TestVariant) | [Variant](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/Variant)for test-only modules. |

*** ** * ** ***

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

## Summary

|                                                                                                                                                                                                           ### Public properties                                                                                                                                                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AndroidResources](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/AndroidResources)                                                 | [androidResources](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/GeneratesApk#androidResources()) Variant's android resources processing configuration, initialized by the corresponding global DSL element. |
| [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.3/com/android/build/api/variant/GeneratesApk#applicationId()) Variant's application ID as present in the final manifest file of the APK.                                       |
| [ApkPackaging](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ApkPackaging)                                                         | [packaging](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/GeneratesApk#packaging()) Variant's packagingOptions, initialized by the corresponding global DSL element.                                         |
| [Renderscript](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/Renderscript)`?`                                                      | [renderscript](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/GeneratesApk#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.  

### applicationId

```
val applicationId: Provider<String>
```

Variant's application ID as present in the final manifest file of the APK.  

### packaging

```
val packaging: ApkPackaging
```

Variant's packagingOptions, initialized by the corresponding global DSL element.  

### renderscript

```
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.3/com/android/build/api/dsl/BuildFeatures#renderScript())is false.