# GeneratesTestApkBuilder

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


```
interface GeneratesTestApkBuilder : GeneratesApkBuilder
```

<br />

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

|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/DeviceTestBuilder` | Interface to turn tests on devices, `AndroidTest` being an example of device tests. |

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

|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/AndroidTestBuilder` |   |

*** ** * ** ***

Configuration-time properties `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/ComponentBuilder` that produce Test APKs.

## Summary

### Inherited properties

From [com.android.build.api.variant.GeneratesApkBuilder](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApkBuilder) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApkBuilder#debuggable()`

**The getter for this property is deprecated.** Other plugins can change this value, it is not safe to read it at this stage
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApkBuilder#enableMultiDex()`

**The getter for this property is deprecated.** Other plugins can change this value, it is not safe to read it at this stage
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApkBuilder#targetSdk()`

Sets the target SDK Version for this variant as an integer API level.
`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/GeneratesApkBuilder#targetSdkPreview()`

Sets the target SDK Version for this variant as an integer API level.