Stay organized with collections
Save and categorize content based on your preferences.
ApkPackaging
interface ApkPackaging : Packaging
Defines an APK variant's packaging options.
Summary
Properties
dex
abstract val dex: DexPackagingOptions
PackagingOptions for dex files. Initialized from the corresponding DSL.
jniLibs
abstract val jniLibs: JniLibsApkPackaging
PackagingOptions for native libraries. Initialized from the corresponding DSL.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ApkPackaging\n============\n\n```\ninterface ApkPackaging : Packaging\n```\n\n|-------------------------------------------------|\n| [com.android.build.api.variant.ApkPackaging](#) |\n\nDefines an APK variant's packaging options.\n\nSummary\n-------\n\n| ### Properties ||\n|-------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| abstract [DexPackagingOptions](/reference/tools/gradle-api/7.0/com/android/build/api/variant/DexPackagingOptions) | [dex](#dex:com.android.build.api.variant.DexPackagingOptions) PackagingOptions for dex files. |\n| abstract [JniLibsApkPackaging](/reference/tools/gradle-api/7.0/com/android/build/api/variant/JniLibsApkPackaging) | [jniLibs](#jniLibs:com.android.build.api.variant.JniLibsApkPackaging) PackagingOptions for native libraries. |\n\n| ### Inherited properties ||\n|---|---|\n| From class [Packaging](/reference/tools/gradle-api/7.0/com/android/build/api/variant/Packaging) |--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ResourcesPackaging](/reference/tools/gradle-api/7.0/com/android/build/api/variant/ResourcesPackaging) | [resources](/reference/tools/gradle-api/7.0/com/android/build/api/variant/Packaging#resources:com.android.build.api.variant.ResourcesPackaging) PackagingOptions for java resources. Initialized from the corresponding DSL. \u003cbr /\u003e | ||\n\nProperties\n----------\n\n### dex\n\n```\nabstract val dex: DexPackagingOptions\n```\n\nPackagingOptions for dex files. Initialized from the corresponding DSL. \n\n### jniLibs\n\n```\nabstract val jniLibs: JniLibsApkPackaging\n```\n\nPackagingOptions for native libraries. Initialized from the corresponding DSL."]]