Dexing

Added in 8.3.1

@Incubating
interface Dexing


Settings related to how dex files are produced.

To change any of these settings :

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

Summary

Public properties

Boolean

This property is deprecated. Legacy multidex (minSdk <= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11.

RegularFileProperty

This property is deprecated. Legacy multidex (minSdk <= 19) is deprecated in AGP 9.4 and will be unsupported in AGP 11.

RegularFileProperty

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.5.0-alpha03
val isMultiDexEnabledBoolean

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.5.0-alpha03
val multiDexKeepFileRegularFileProperty

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

Note that the 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.5.0-alpha03
val multiDexKeepProguardRegularFileProperty

If set, will point to the multiDex proguard file

Note that the 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.