# SingleArtifact.APK_FROM_BUNDLE

[View Source](https://cs.android.com/search?q=file:com/android/build/api/artifact/SingleArtifact.kt+class:com.android.build.api.artifact.SingleArtifact.APK_FROM_BUNDLE) Added in 7.4.0


```
@Incubating
object SingleArtifact.APK_FROM_BUNDLE : SingleArtifact<RegularFile>
```

<br />

|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||
| ↳ | [com.android.build.api.artifact.Artifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact) ||||
|   | ↳ | [com.android.build.api.artifact.Artifact.Single](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Single) |||
|   |   | ↳ | [com.android.build.api.artifact.SingleArtifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/SingleArtifact)\<[RegularFile](https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html)\> ||
|   |   |   | ↳ | [com.android.build.api.artifact.SingleArtifact.APK_FROM_BUNDLE](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/SingleArtifact.APK_FROM_BUNDLE) |

*** ** * ** ***

Universal APK that contains assets for all screen densities. It is not optimized for particular phone and is much bigger than regular APKs. Build creates a bundle file first and then generates Universal APK from it.

It's *not efficient* to use `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/SingleArtifact.APK_FROM_BUNDLE` because of size and because it creates a Bundle (.aab) file first and finally extracts the APK from it. These steps will slow your build flow. Thus, unless your intent is to check the universal APK as produced from a .aab file, prefer `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/SingleArtifact.APK`.

## Summary

### Inherited functions

From [com.android.build.api.artifact.Artifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact) `open 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/artifact/Artifact#getFolderName()()` `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/artifact/Artifact#name()()`

Provide a unique name for the artifact type.
From [com.android.build.api.artifact.SingleArtifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/SingleArtifact) `open 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/artifact/SingleArtifact#getFileSystemLocationName()()`

### Inherited properties

From [com.android.build.api.artifact.Artifact](https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact) `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact.Category` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact#category()` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/ArtifactKind<https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html>` `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/artifact/Artifact#kind()`