# BuiltArtifact

[View Source](https://cs.android.com/search?q=file:com/android/build/api/variant/BuiltArtifact.kt+class:com.android.build.api.variant.BuiltArtifact) Added in 4.2.0


```
interface BuiltArtifact : VariantOutputConfiguration
```

<br />

*** ** * ** ***

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

This is part of the `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/BuiltArtifactsLoader` API to read the content of the APK folder generated by the build.

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/BuiltArtifact#outputFile()` Absolute path to the built file |
| `java.nio.file.Path` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/BuiltArtifact#path()` to the output file |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/BuiltArtifact#versionCode()` The version code of this artifact or null if the version code is unknown (not set in manifest nor DSL) |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/BuiltArtifact#versionName()` The version name of this artifact or null if the version name is unknown (not set in manifest nor DSL) |

### Inherited properties

From [com.android.build.api.variant.VariantOutputConfiguration](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/VariantOutputConfiguration) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-collection/index.html<https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/FilterConfiguration>` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/VariantOutputConfiguration#filters()`

The list of `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/FilterConfiguration` for this output.
`https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/VariantOutputConfiguration.OutputType` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/VariantOutputConfiguration#outputType()`

The `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/VariantOutputConfiguration.OutputType` for this particular output

## Public properties

### outputFile

Added in 4.2.0

```
val outputFile: String
```

Absolute path to the built file

### path

Added in 8.10.1

```
val path: java.nio.file.Path
```

to the output file

### versionCode

Added in 4.2.0

```
val versionCode: Int?
```

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

### versionName

Added in 4.2.0

```
val versionName: String?
```

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