Compose

Define your UI programmatically with composable functions that describe its shape and data dependencies.

Compose is combination of 7 Maven Group Ids within androidx. Each Group contains a targeted subset of functionality, each with its own set of release notes.

This table explains the groups and links to each set of release notes.

GroupDescription
compose.animationBuild animations in their Jetpack Compose applications to enrich the user experience.
compose.compilerTransform @Composable functions and enable optimizations with a Kotlin compiler plugin.
compose.foundationWrite Jetpack Compose applications with ready to use building blocks and extend foundation to build your own design system pieces.
compose.materialBuild Jetpack Compose UIs with ready to use Material Design Components. This is the higher level entry point of Compose, designed to provide components that match those described at www.material.io.
compose.material3Build Jetpack Compose UIs with Material Design 3 Components, the next evolution of Material Design. Material 3 includes updated theming and components and Material You personalization features like dynamic color, and is designed to be cohesive with the new Android 12 visual style and system UI.
compose.runtimeFundamental building blocks of Compose's programming model and state management, and core runtime for the Compose Compiler Plugin to target.
compose.uiFundamental components of compose UI needed to interact with the device, including layout, drawing, and input.

Versions

This table lists the current versions of each group.

Maven Group ID Latest Update Stable Release Release Candidate Beta Release Alpha Release
compose.animation May 3, 2023 1.4.3 - 1.5.0-beta02 -
compose.compiler May 3, 2023 1.4.7 - - -
compose.foundation June 7, 2023 1.4.3 - 1.5.0-beta02 -
compose.material June 7, 2023 1.4.3 - 1.5.0-beta02 -
compose.material3 May 24, 2023 1.1.0 - - 1.2.0-alpha02
compose.runtime June 7, 2023 1.4.3 - 1.5.0-beta02 -
compose.ui June 7, 2023 1.4.3 - 1.5.0-beta02 -

Declaring dependencies

To add a dependency on Compose, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Groovy

android {
    buildFeatures {
        compose true
    }

    composeOptions {
        kotlinCompilerExtensionVersion = "1.4.7"
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }
}

Kotlin

android {
    buildFeatures {
        compose = true
    }

    composeOptions {
        kotlinCompilerExtensionVersion = "1.4.7"
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Compose BOM 2023.05.01

May 10, 2023

androidx.compose:compose-bom:2023.05.01 is released. Please see our setup guide for details on how to use our BOM and what versions are in it!

Compose BOM 2023.05.00

May 03, 2023

androidx.compose:compose-bom:2023.05.00 is released. Please see our setup guide for details on how to use our BOM and what versions are in it!

Compose BOM 2023.04.01

April 19, 2023

androidx.compose:compose-bom:2023.04.01 is released. Please see our setup guide for details on how to use our BOM and what versions are in it!

Compose BOM 2023.04.00

April 05, 2023

androidx.compose:compose-bom:2023.04.00 is released. Please see our setup guide for details on how to use our BOM and what versions are in it!

Compose BOM 2023.03.00

March 22, 2023

androidx.compose:compose-bom:2023.03.00 is released. Please see our setup guide for details on how to use our BOM and what versions are in it!

Compose BOM 2023.01.00

January 11, 2023

androidx.compose:compose-bom:2023.01.00 is released. Please see our setup guide for details on how to use our BOM and what versions are in it!

Compose BOM 2022.12.00

December 7, 2022

androidx.compose:compose-bom:2022.12.00 is released. Please see our setup guide for details on how to use our BOM and what versions are in it!

Compose BOM 2022.11.00

November 9, 2022

androidx.compose:compose-bom:2022.11.00 is released. Please see our setup guide for details on how to use our BOM and what versions are in it!

Compose BOM 2022.10.00

October 24, 2022

androidx.compose:compose-bom:2022.10.00 is released. Please see our setup guide for details on how to use our BOM and what versions are in it!