DexPackaging

Added in 8.0.0

interface DexPackaging


Packaging options for Dex (Android Dalvik Executable) files in the Android DSL

android {
packaging {
dex {
useLegacyPackaging = ...
}
}
}

Summary

Public properties

Boolean?

Whether to use the legacy convention of compressing all dex files in the APK.

Public properties

useLegacyPackaging

Added in 8.0.0
var useLegacyPackagingBoolean?

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.