# SingleArtifact.APK_FROM_BUNDLE

# 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.1  

<br />

```
@Incubating
object SingleArtifact.APK_FROM_BUNDLE : SingleArtifact
```

<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/8.7/com/android/build/api/artifact/Artifact)                                                      ||||
|   | ↳ | [com.android.build.api.artifact.Artifact.Single](https://developer.android.com/reference/tools/gradle-api/8.7/com/android/build/api/artifact/Artifact.Single)                                     |||
|   |   | ↳ | [com.android.build.api.artifact.SingleArtifact](https://developer.android.com/reference/tools/gradle-api/8.7/com/android/build/api/artifact/SingleArtifact)                                    ||
|   |   |   | ↳ | [com.android.build.api.artifact.SingleArtifact.APK_FROM_BUNDLE](https://developer.android.com/reference/tools/gradle-api/8.7/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[APK_FROM_BUNDLE](https://developer.android.com/reference/tools/gradle-api/8.7/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[APK](https://developer.android.com/reference/tools/gradle-api/8.7/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/8.7/com/android/build/api/artifact/Artifact) |-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `open `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getFolderName](https://developer.android.com/reference/tools/gradle-api/8.7/com/android/build/api/artifact/Artifact#getFolderName())`()`                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)        | [name](https://developer.android.com/reference/tools/gradle-api/8.7/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/8.7/com/android/build/api/artifact/SingleArtifact) |-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `open `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getFileSystemLocationName](https://developer.android.com/reference/tools/gradle-api/8.7/com/android/build/api/artifact/SingleArtifact#getFileSystemLocationName())`()` |                                                                                                                                                                                                                                                  |

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