# Dexing

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


```
@Incubating
interface Dexing
```

<br />

*** ** * ** ***

Settings related to how dex files are produced.

To change any of these settings :

```
androidComponents {
    beforeVariants { variant ->
        variant.dexing...
    }
}
```

## Summary

| ### Public properties |
|---|---|
| `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/Dexing#isMultiDexEnabled()` **This property is deprecated.** Legacy multidex (minSdk \<= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11. |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFileProperty.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Dexing#multiDexKeepFile()` **This property is deprecated.** Legacy multidex (minSdk \<= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11. |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFileProperty.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/Dexing#multiDexKeepProguard()` **This property is deprecated.** Legacy multidex (minSdk \<= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11. |

## Public properties

### isMultiDexEnabled

Added in 8.3.1 Deprecated in 9.6.0-alpha03

```
val isMultiDexEnabled: Boolean
```

> [!CAUTION]
> **This property is deprecated.**   
> Legacy multidex (minSdk \<= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11. Native multidex is always supported for minSdk 21+.

Legacy multidex (minSdk \<= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11. Native multidex is always supported for minSdk 21+.

### multiDexKeepFile

Added in 8.3.1 Deprecated in 9.6.0-alpha03

```
val multiDexKeepFile: RegularFileProperty
```

> [!CAUTION]
> **This property is deprecated.**   
> Legacy multidex (minSdk \<= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11. Native multidex is always supported for minSdk 21+ and does not require main dex class configuration.

If set, will point to a text file that specifies additional classes that will be compiled into the main dex file.

Note that the `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApkBuilder#enableMultiDex()` must be set to true for this property to be used.

Legacy multidex (minSdk \<= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11. Native multidex is always supported for minSdk 21+ and does not require main dex class configuration.

### multiDexKeepProguard

Added in 8.3.1 Deprecated in 9.6.0-alpha03

```
val multiDexKeepProguard: RegularFileProperty
```

> [!CAUTION]
> **This property is deprecated.**   
> Legacy multidex (minSdk \<= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11. Native multidex is always supported for minSdk 21+ and does not require main dex class configuration.

If set, will point to the multiDex proguard file

Note that the `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/GeneratesApkBuilder#enableMultiDex()` must be set to true for this property to be used.

Legacy multidex (minSdk \<= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11. Native multidex is always supported for minSdk 21+ and does not require main dex class configuration.