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 build.gradle
file.
allprojects {
repositories {
google()
jcenter()
maven { url '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"
}