# DependencyVariantSelection

# DependencyVariantSelection

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

<br />

```
@Incubating
interface DependencyVariantSelection
```

<br />

*** ** * ** ***

Specifies options for doing variant selection for external Android dependencies based on build types and product flavours

## Summary

|                                                                                                                                                                         ### Public properties                                                                                                                                                                         |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ListProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/ListProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`                                                                                                                                                                               | [buildTypes](https://developer.android.com/reference/tools/gradle-api/8.6/com/android/build/api/dsl/DependencyVariantSelection#buildTypes()) Specifies a list of build types that the plugin should try to use when a direct variant match with a dependency is not possible.            |
| [MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>>` | [productFlavors](https://developer.android.com/reference/tools/gradle-api/8.6/com/android/build/api/dsl/DependencyVariantSelection#productFlavors()) Specifies a map of product flavors that the plugin should try to use when a direct variant match with a dependency is not possible. |

## Public properties

### buildTypes

Added in 8.2.0  

```
val buildTypes: ListProperty<String>
```

Specifies a list of build types that the plugin should try to use when a direct variant match with a dependency is not possible.

If the list is left empty, the default variant for the dependencies being consumed will be of build type "debug"  

### productFlavors

Added in 8.2.0  

```
val productFlavors: MapProperty<String, List<String>>
```

Specifies a map of product flavors that the plugin should try to use when a direct variant match with a dependency is not possible.