Stay organized with collections
Save and categorize content based on your preferences.
Replaceable
@Incubating interface Replaceable
Denotes an artifact type that can be replaced.
Only SingleArtifact artifacts can be replaced, if you want to replace a MultipleArtifact
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Artifact.Replaceable\n\nReplaceable\n===========\n\n```\n@Incubating interface Replaceable\n```\n\n|----------------------------------------------------------|\n| [com.android.build.api.artifact.Artifact.Replaceable](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ArtifactType.APK](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.APK), [ArtifactType.MERGED_MANIFEST](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.MERGED_MANIFEST) |-----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------| | [ArtifactType.APK](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.APK) | APK directory where final APK files will be located. | | [ArtifactType.MERGED_MANIFEST](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/ArtifactType.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 [SingleArtifact](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/Artifact.SingleArtifact) artifacts can be replaced, if you want to replace a [MultipleArtifact](/reference/tools/gradle-api/4.1/com/android/build/api/artifact/Artifact.MultipleArtifact)\nartifact type, you will need to transform it by combining all the inputs into a single output\ninstance.\n\nSummary\n-------"]]