# GeneratesApk

[View Source](https://cs.android.com/search?q=file:com/android/build/api/variant/GeneratesApk.kt+class:com.android.build.api.variant.GeneratesApk) Added in 7.0.0


```
interface GeneratesApk
```

<br />

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

|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/ApplicationVariant` | Model for application components that only contains build-time properties. |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/DynamicFeatureVariant` | Model for dynamic feature components that only contains build-time properties. |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesTestApk` | Build-time properties for `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Component` that produce test APKs. |

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

|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidTest` | Model for Android Test components that contains build-time properties |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/DeviceTest` | Model for Device Test components that contains build-time properties |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/TestVariant` | Model for test components that only contains build-time properties. |

*** ** * ** ***

Build-time properties for `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Component` that produce APKs.

## Summary

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidResources` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#androidResources()` Variant's android resources processing configuration, initialized by the corresponding global DSL element. |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#applicationId()` Variant's application ID as present in the final manifest file of the APK. |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Dexing` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#dexing()` Variant's specific dexing options |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidVersion` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#minSdk()` Min SDK version for this variant |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/ApkOutputProviders` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#outputProviders()` Provides access to built artifacts output(e.g. APK) produced by this Variant. |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/ApkPackaging` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#packaging()` Variant's packagingOptions, initialized by the corresponding global DSL element. |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Renderscript?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#renderscript()` Variant specific settings for the renderscript compiler. |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidVersion` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApk#targetSdk()` Target SDK version for this variant. |

## Public properties

### androidResources

Added in 7.0.0

```
val androidResources: AndroidResources
```

Variant's android resources processing configuration, initialized by the corresponding global DSL element.

### applicationId

Added in 7.0.0

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

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

### dexing

Added in 8.3.1

```
val dexing: Dexing
```

Variant's specific dexing options

### minSdk

Added in 8.8.0

```
val minSdk: AndroidVersion
```

Min SDK version for this variant

### outputProviders

Added in 8.9.0

```
val outputProviders: ApkOutputProviders
```

Provides access to built artifacts output(e.g. APK) produced by this Variant.

### packaging

Added in 7.0.0

```
val packaging: ApkPackaging
```

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

### renderscript

Added in 7.0.0

```
val renderscript: Renderscript?
```

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

### targetSdk

Added in 8.1.0

```
val targetSdk: AndroidVersion
```

Target SDK version for this variant.