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