
Disclaimer: Lightbuild is an experimental preview from Google for early evaluation, currently only available in Android Studio Canary and/or the Lightbuild CLI. It is not meant for production apps (which should stay on Gradle Kotlin DSL). The technical evaluations here are my own and do not represent Google or my employer.
I’ve spent the last ten years maintaining Android apps with dozens of Gradle modules, and if there’s one thing every Android engineer has memorized, it’s the progress bar at the bottom of the IDE: Gradle: Syncing…
You switch git branches, pull changes from main, and wait. On a project with forty or fifty modules, that wait is often a minute or two of dead time. During that window, Android Studio is effectively frozen while a Gradle daemon evaluates build scripts across the entire repo.
We put up with this because Gradle is ridiculously flexible. With build.gradle.kts, your build file isn’t configuration; it’s a Kotlin program. You can query environment flags, parse git commit hashes to generate version codes, write conditional loops, and register ad-hoc tasks.
The catch is that because build files are executable code, Gradle can’t simply read your dependencies off disk. To find out what libraries module :feature:explore needs, the build system has to spin up a JVM, compile your build scripts, evaluate convention plugins, and execute the configuration phase.
At Android Dev Summit, Google showed an alternative they’ve been testing called Lightbuild.
I’ve been using Lightbuild over the past few weeks through Google’s Early Access Program (EAP) on a sample multi-module streaming app called ICanHazStream. You can follow along with the hands-on companion codelab: Declarative Android Builds with Lightbuild.
Here is what the toolchain actually looks like on disk, how it works, and why Google is building it.
The Problem with Code as Configuration
In the Dev Summit session, Juan Sebastian Oviedo (Product Manager on the Android Developer Experience team) pointed out something that matches what most platform teams see in practice:
Most modules in modern Android apps don’t need arbitrary code.
When Android projects were single monoliths with an app directory and a few helper folders, custom build script logic was common. Today, apps are routinely split into 30, 80, or 200 modules: UI modules, data layers, feature libraries, domain models.
Almost all of those library modules do the exact same thing:
- Target an Android SDK level.
- Enable Compose or Java 17.
- List 5 to 10 dependencies.
Yet because Gradle uses a general-purpose programming language for build files, every single module pays the price of script compilation and execution on every IDE sync.
There is also a second friction point that has surfaced recently: AI coding assistants.
If you’ve tried having tools like Gemini in Android Studio or Claude edit a Gradle file, you know it’s hit or miss. An agent trying to add a dependency has to parse Kotlin closures, version catalog accessors (libs.plugins… vs libs.bundles…), and plugin blocks. Miss one bracket or misorder a plugin declaration, and the entire build fails before compilation even begins. Worse, the agent has no way to validate the syntax without triggering a full Gradle sync.
Lightbuild addresses both issues by turning build configuration from executable code into structured data.
What Lightbuild Actually Is
Lightbuild is not a complete replacement for Gradle, the Android Gradle Plugin (AGP), or D8/R8, but it does take over several responsibilities from them.

Instead of writing .gradle.kts files, you define your project in static YAML files. Android Studio Canary syncs Lightbuild projects directly from the YAML and resolved.deps, without Gradle or AGP. Lightbuild also resolves dependencies itself, without Gradle.

At build time, Lightbuild passes off the build to Gradle/AGP under the hood to compile your Kotlin code, run R8 shrinker steps, merge Android manifests, and package your APK or AAB. However since that handoff generates the gradle files, you should not make any workflows depend on the .lightbuild/gradle directory.
What the Files Look Like
In a Lightbuild workspace, you have a single root file and individual module files.

1. project.lightbuild.yaml
This file replaces settings.gradle.kts and your root build.gradle.kts:
project:
name: "ICanHazStream"
modules:
- app
- core/model
- core/data
- core/ui
- feature/explore
repositories:
- mavenCentral
lightbuild:
version: "0.0.30"
build:
java:
version: "17"
Notice what isn’t here: no plugin management blocks, no resolution strategy blocks, no imperative logic. It is just a list of modules, repositories, and global toolchain versions.
Android Studio Canary bundles a JSON schema specifically for Lightbuild. If you typo a repository name or specify an unsupported Java version, the IDE underlines the error immediately, exactly like schema validation in a Kubernetes or GitHub Actions file. You don’t have to wait for a sync failure to catch typos.
2. lightbuild.yaml (Per Module)
Inside each module directory, you replace build.gradle.kts with lightbuild.yaml:
type: application
platform: android
android:
namespace: me.kartikarora.icanhazstream
compileSdk:
version:
release:
apiLevel: 37
minSdk:
version:
release:
apiLevel: 24
targetSdk:
version:
release:
apiLevel: 37
dependencies:
module:
- //core/ui
- //core/data
- //feature/explore
maven:
- androidx.core:core-ktx:1.10.1
- androidx.activity:activity-compose:1.8.0
For inter-module dependencies, Lightbuild uses the //path/to/module syntax familiar from systems like Bazel.
Because this is a plain data file, an AI agent or a developer adding a library just appends a string to a list. There are no scope issues or closure syntax to get wrong.
Why IDE Sync Gets Faster: resolved.deps
The biggest operational shift in Lightbuild is how it handles dependencies.
In standard Gradle, every time you sync your project, the build system walks the dependency tree to resolve transitive versions and resolve version conflicts.
Lightbuild integrates dependency resolution directly into the build pipeline. Whenever you add or change dependencies in lightbuild.yaml, building or testing your app automatically updates the lockfile:
lightbuild build app:app-debug.apk
The CLI calculates the full transitive dependency graph and dumps it into a flat text file called resolved.deps inside the module folder:
# This file is automatically generated by Lightbuild.
# This file should be checked into version control.
sourceSets:
main:
- androidx.activity:activity:1.8.0
- androidx.activity:activity-compose:1.8.0
- androidx.activity:activity-ktx:1.8.0
- androidx.annotation:annotation:1.6.0
- androidx.annotation:annotation-experimental:1.3.0
- androidx.annotation:annotation-jvm:1.6.0
- androidx.compose.runtime:runtime:1.0.1
- androidx.compose.ui:ui:1.0.1
- androidx.core:core:1.10.1
- androidx.core:core-ktx:1.10.1
- androidx.lifecycle:lifecycle-runtime:2.6.1
- androidx.lifecycle:lifecycle-viewmodel:2.6.1
You check this file into git. While lightbuild build and lightbuild test automatically resolve dependencies and update resolved.deps, running lightbuild resolve directly is useful to pre-warm the cache before coding or in CI pipelines (lightbuild resolve –locked-dependencies) to guarantee strict reproducible builds.
Because the full graph is pre-resolved and stored right next to the code:
- The IDE doesn’t calculate dependencies during sync. When you open Android Studio Canary, it reads resolved.deps straight off the disk to build the project classpath. Sync is virtually instantaneous.
- CI and teammates get identical builds. There’s no risk of a dynamic version bump breaking someone else’s local build or CI pipeline.
- Diffs are explicit in code reviews. When a PR updates a library, the diff in resolved.deps shows every transitive library that shifted as a result.
The Standalone Lightbuild CLI
Developer workflows are powered by the dedicated lightbuild CLI:

Instead of jumping between ./gradlew, adb, and complex daemon configurations, you run straightforward commands:
# Query modules and target outputs
lightbuild query //...
# Compile target app
lightbuild build app:app-debug.apk
# Run test suites
lightbuild test feature/watchlist:hostTest
# Pre-warm dependencies or lock cache
lightbuild resolve
For shell automation and AI workflows, having standard verbs with structured output avoids scraping ./gradlew terminal output or dealing with daemon lifecycle issues.
Real Projects: Now in Android & ICanHazStream
At the Dev Summit, Scott Myers walked through running Lightbuild on Now in Android, Google’s showcase architecture repo:

Seeing it run on Now in Android is a good sanity check. This isn’t just an empty template; Now in Android has 30+ modules, custom Compose components, Room databases, and coroutine pipelines.
In my own testing on ICanHazStream, the workflow felt noticeably different from typical Android development. You define your module in YAML, let Lightbuild handle the classpath, and start writing Kotlin. The IDE picks up the classpath without the usual sync dance.
Where Lightbuild Stands Today
Lightbuild 0.0.30 is currently in preview available via the Android CLI SDK manager (android sdk install build/lightbuild/0.0.30) and Android Studio Canary.
It is not ready for production apps, and Google made that clear in the session.
Here is the realistic breakdown:
- Good fit today: New sample apps, prototypes, personal side projects, and evaluating AI agent automation pipelines.
- Not ready for: Enterprise codebases with custom bytecode transformers, complicated flavor matrices, custom Gradle convention plugins, or specialized CI packaging scripts. Those should stay on Gradle Kotlin DSL for now.
That said, the direction is clear. Separating build logic from project structure and moving to pre-resolved dependency lockfiles solves real daily pain points around sync speed and automated tooling.
If you want to try it out yourself on a real app, check out the companion hands-on codelab: Declarative Android Builds with Lightbuild.
Sources & Resources
The Dev Summit Talk
Google unveiled Lightbuild during the Android Dev Summit session “Declarative, agent-ready Android builds with Lightbuild”, presented by Juan Sebastian Oviedo (Product Manager) and Scott Myers (Android DevRel). You can watch the full recording on YouTube or view the session overview on the Android Dev Summit Archive.
Official Documentation
Detailed configuration schemas, CLI commands, and setup instructions are documented in the official Google Lightbuild Guide.
Code & Companion Materials
- Hands-on Codelab: codelabs.kartikarora.me/lightbuild
- Project Repository: kartikarora/ICanHazStream on GitHub
- Interactive Slides: presentations.kartikarora.me/lightbuild
Inside Lightbuild: Google’s Declarative Android Build Experiment was originally published in ProAndroidDev on Medium, where people are continuing the conversation by highlighting and responding to this story.