androidx.dev
androidx.dev

Using Snapshot Builds

This service helps you explore and use AndroidX snapshot builds. To get started, click on Snapshots to find recent snapshot builds.

AndroidX Snapshots

Add the following snippet to your build.gradle file.

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'http://androidx.dev/snapshots/builds/[buildId]/artifacts/repository' }
    }
}

Jetpack Compose Snapshots

Add the following snippet to your build.gradle file.

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'http://androidx.dev/snapshots/builds/[buildId]/artifacts/ui/repository' }
    }
}

A note on versioning of artifacts

You must define dependencies on artifacts using the SNAPSHOT version. Here is an example where the build script defines a dependency on WorkManager snapshots.

dependencies {
    def work_version = '2.4.0-SNAPSHOT'
    implementation "androidx.work:work-runtime:$work_version"
}