# DexPackagingOptions

# DexPackagingOptions

```
@Incubating interface DexPackagingOptions
```

|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.dsl.DexPackagingOptions](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/dsl/DexPackagingOptions#) |

Packaging options for Dex (Android Dalvik Executable) files

## Summary

|                                                                                                                                                                ### Properties                                                                                                                                                                 ||
|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [useLegacyPackaging](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/dsl/DexPackagingOptions#useLegacyPackaging:kotlin.Boolean) Whether to use the legacy convention of compressing all dex files in the APK. |

## Properties

### useLegacyPackaging

```
abstract var useLegacyPackaging: Boolean?
```

Whether to use the legacy convention of compressing all dex files in the APK. If null, dex files will be uncompressed when minSdk \>= 28.

This property does not affect dex file compression in APKs produced from app bundles.