Stay organized with collections
Save and categorize content based on your preferences.
public interface Artifact.Replaceable
Denotes an artifact type that can be replaced. Only Single
artifacts can be replaced, if you want to replace a Multiple
artifact type, you will need to transform it by combining all the inputs into a single output instance.
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,["# Artifact.Replaceable\n====================\n\n\n```\npublic interface Artifact.Replaceable\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[MultipleArtifact.MULTIDEX_KEEP_PROGUARD](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/MultipleArtifact.MULTIDEX_KEEP_PROGUARD), [MultipleArtifact.NATIVE_DEBUG_METADATA](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/MultipleArtifact.NATIVE_DEBUG_METADATA), [MultipleArtifact.NATIVE_SYMBOL_TABLES](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/MultipleArtifact.NATIVE_SYMBOL_TABLES), [SingleArtifact.APK](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/SingleArtifact.APK), [SingleArtifact.ASSETS](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/SingleArtifact.ASSETS), [SingleArtifact.MERGED_MANIFEST](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST), [SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT) \n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [MultipleArtifact.MULTIDEX_KEEP_PROGUARD](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/MultipleArtifact.MULTIDEX_KEEP_PROGUARD) | Text files with additional ProGuard rules to be used to determine which classes are compiled into the main dex file. |\n| [MultipleArtifact.NATIVE_DEBUG_METADATA](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/MultipleArtifact.NATIVE_DEBUG_METADATA) | Directories with native debug metadata |\n| [MultipleArtifact.NATIVE_SYMBOL_TABLES](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/MultipleArtifact.NATIVE_SYMBOL_TABLES) | Directories with debug symbol table |\n| [SingleArtifact.APK](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/SingleArtifact.APK) | Directory where APK files will be located. |\n| [SingleArtifact.ASSETS](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/SingleArtifact.ASSETS) | Assets that will be packaged in the resulting APK or Bundle. |\n| [SingleArtifact.MERGED_MANIFEST](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST) | Merged manifest file that will be used in the APK, Bundle and InstantApp packages. |\n| [SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/SingleArtifact.METADATA_LIBRARY_DEPENDENCIES_REPORT) | The metadata for the library dependencies. |\n\n*** ** * ** ***\n\nDenotes an artifact type that can be replaced. Only [Single](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/Artifact.Single) artifacts can be replaced, if you want to replace a [Multiple](/reference/tools/gradle-api/8.3/null/com/android/build/api/artifact/Artifact.Multiple) artifact type, you will need to transform it by combining all the inputs into a single output instance."]]