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 & Jetpack Compose Snapshots

Add the following snippet to your settings.gradle.kts file.

// settings.gradle.kts
pluginManagement {
    repositories {
        google()
        gradlePluginPortal()
        mavenCentral()
        maven {
            // You can find the maven URL for other artifacts (e.g. KMP, METALAVA) on their
            // build pages.
            url = uri("https://androidx.dev/snapshots/builds/[buildId]/artifacts/repository")
        }
    }
}

dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        maven {
            url = uri("https://androidx.dev/snapshots/builds/[buildId]/artifacts/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.5.0-SNAPSHOT'
    implementation "androidx.work:work-runtime:$work_version"
}