Stay organized with collections
Save and categorize content based on your preferences.
DexPackagingOptions
@Incubating interface DexPackagingOptions
Packaging options for Dex (Android Dalvik Executable) files
Summary
Properties
|
abstract 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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DexPackagingOptions\n===================\n\n```\n@Incubating interface DexPackagingOptions\n```\n\n|----------------------------------------------------|\n| [com.android.build.api.dsl.DexPackagingOptions](#) |\n\nPackaging options for Dex (Android Dalvik Executable) files\n\nSummary\n-------\n\n| ### Properties ||\n|----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)? | [useLegacyPackaging](#useLegacyPackaging:kotlin.Boolean) Whether to use the legacy convention of compressing all dex files in the APK. |\n\nProperties\n----------\n\n### useLegacyPackaging\n\n```\nabstract var useLegacyPackaging: Boolean?\n```\n\nWhether to use the legacy convention of compressing all dex files in the APK. If null, dex\nfiles will be uncompressed when minSdk \\\u003e= 28.\n\nThis property does not affect dex file compression in APKs produced from app bundles."]]