BuiltArtifact

public interface BuiltArtifact extends VariantOutputConfiguration


Represents a built artifact that is present in the file system.

Summary

Public methods

abstract @NonNull String

Absolute path to the built file

abstract Integer

Returns a read-only version code.

abstract String

Returns a read-only version name.

Inherited methods

abstract @NonNull Collection<@NonNull FilterConfiguration>

Returns a possibly empty list of FilterConfiguration for this output.

abstract @NonNull VariantOutputConfiguration.OutputType

Returns the output type of the referenced APK.

Public methods

getOutputFile

abstract @NonNull String getOutputFile()

Absolute path to the built file

Returns
@NonNull String

the output file path.

getVersionCode

abstract Integer getVersionCode()

Returns a read-only version code.

Returns
Integer

version code or null if the version code is unknown (not set in manifest nor DSL)

getVersionName

abstract String getVersionName()

Returns a read-only version name.

Returns
String

version name or null if the version name is unknown (not set in manifest nor DSL)

Android Studio Giraffe Closed Issues

Updated Dec 13, 2024

Provide more relevant information to users based on their location and device sensors, after checking that users have granted the necessary permissions.

Updated Feb 21, 2025

Android XR (Extended Reality) device development hub

Updated Feb 14, 2025