Stay organized with collections
Save and categorize content based on your preferences.
ApkPackaging
interface ApkPackaging : Packaging
Defines an APK variant's packaging options.
Summary
Public properties
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\n```\ninterface ApkPackaging : Packaging\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDefines an APK variant's packaging options.\n\nSummary\n-------\n\n| ### Public properties ||\n|----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| [DexPackagingOptions](/reference/tools/gradle-api/8.0/com/android/build/api/variant/DexPackagingOptions) | [dex](/reference/tools/gradle-api/8.0/com/android/build/api/variant/ApkPackaging#dex()) PackagingOptions for dex files. |\n| [JniLibsApkPackaging](/reference/tools/gradle-api/8.0/com/android/build/api/variant/JniLibsApkPackaging) | [jniLibs](/reference/tools/gradle-api/8.0/com/android/build/api/variant/ApkPackaging#jniLibs()) PackagingOptions for native libraries. |\n\n| ### Inherited properties ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| From class [com.android.build.api.variant.Packaging](/reference/tools/gradle-api/8.0/com/android/build/api/variant/Packaging) |--------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| | [ResourcesPackaging](/reference/tools/gradle-api/8.0/com/android/build/api/variant/ResourcesPackaging) | [resources](/reference/tools/gradle-api/8.0/com/android/build/api/variant/Packaging#resources()) PackagingOptions for java resources. | |\n\nPublic properties\n-----------------\n\n### dex\n\n```\nval dex: DexPackagingOptions\n```\n\nPackagingOptions for dex files. Initialized from the corresponding DSL. \n\n### jniLibs\n\n```\nval jniLibs: JniLibsApkPackaging\n```\n\nPackagingOptions for native libraries. Initialized from the corresponding DSL."]]