Stay organized with collections
Save and categorize content based on your preferences.
Replaceable
interface 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.
Summary
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\nReplaceable\n===========\n\n```\ninterface Replaceable\n```\n\n|----------------------------------------------------------|\n| [com.android.build.api.artifact.Artifact.Replaceable](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [MultipleArtifact.MULTIDEX_KEEP_PROGUARD](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/MultipleArtifact.MULTIDEX_KEEP_PROGUARD), [SingleArtifact.APK](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.APK), [SingleArtifact.MERGED_MANIFEST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST) |---------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------| | [MultipleArtifact.MULTIDEX_KEEP_PROGUARD](/reference/tools/gradle-api/7.0/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. | | [SingleArtifact.APK](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.APK) | Directory where APK files will be located. | | [SingleArtifact.MERGED_MANIFEST](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/SingleArtifact.MERGED_MANIFEST) | Merged manifest file that will be used in the APK, Bundle and InstantApp packages. | |\n\nDenotes an artifact type that can be replaced.\nOnly [Single](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/Artifact.Single) artifacts can be replaced, if you want to replace a [Multiple](/reference/tools/gradle-api/7.0/com/android/build/api/artifact/Artifact.Multiple)\nartifact type, you will need to transform it by combining all the inputs into a single output\ninstance.\n\nSummary\n-------"]]