跪拜 Guibai
← All articles
Frontend · Android · Flutter

Android Dev Summit 2026: IDE Agents, CLI Device Testing, and Built-in Performance Tooling

By 恋猫de小郭 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Android tooling is now explicitly designed so AI agents can own the full loop—writing code, previewing UI, running device tests, reading heap dumps, and editing build config—without a human opening the IDE. Teams that adopt these agent-native commands will see concrete speedups and token savings, but the heavy overhead of Recomposition Tracing and the lingering need for human code review mean the payoff depends on how much automation the team trusts.

Summary

At Android Dev Summit 2026, Google is pushing Android development tooling toward AI-agent workflows on two tracks. In the IDE, stable BYOA (Bring Your Own Agent) support via the Agent Client Protocol lets developers plug in 40+ compatible agents and switch between them. The IDE now ships official Android Skills (30+ covering API upgrades, profilers, R8 analysis, camera) and a Change Review walkthrough that organizes agent-generated edits by feature for code review. A Canary Migration Assistant also uses agents to convert XML Views to Compose.

A separate Android CLI line targets developers who skip the IDE. The new `android preview` command renders Compose `@Preview` composables to PNG and exports component-tree JSON without starting an emulator; Google reports agents using it finish UI tasks 77% faster with up to two-thirds fewer tokens. `android device remote` reserves physical devices from Google's lab and attaches them to local adb, and `android device hub` shows local and remote devices together. Official CLI plugins are available for Claude Code and Codex.

Performance and build tooling also got agent pass-through. A worked example shows Claude Code finding a memory leak by running 45 user flows across 6 emulators, offloading heap analysis to LeakCanary, and following the reference chain to a missing `NetworkCallback` unregister. Compose 1.13's Recomposition Tracing now records State read/write call stacks, and the R8 Configuration Analyzer scores keep rules by shrinking/optimization impact. An experimental Lightbuild project swaps Gradle configuration for declarative YAML to make builds agent-readable, though Google recommends sticking with Gradle/Kotlin DSL for production.

Takeaways
— BYOA (Bring Your Own Agent) reached stable in Android Studio Rabbit 2, letting developers connect 40+ ACP-compatible agents and switch between them from Settings > Tools > AI > Agents.
— ACP is the protocol between IDE and coding agents; it differs from MCP, which handles agent-to-external-tool connections.
— Google ships over 30 official Android Skills covering 20+ problem areas, selectable with '@' in the IDE, including agp-9-upgrade, android-profiler, r8-analyzer, and camerax.
— Change Review in Android Studio organizes agent changes from Agent Changes, pending Git Diffs, or historical Commits into a walkthrough grouped by feature.
— Android Bench 2.0's October 29 leaderboard shows Claude Sonnet 5.5 (max) with Claude Code passing only 40% of 30 tasks.
— The XML-to-Compose Migration Assistant (AI > Migrate to Compose) is still a Canary feature and requires handling navigation, state, and old View coexistence.
— The `android preview` CLI command renders @Preview composables to PNG and can export component-tree JSON via --component-tree, without an emulator or Android Studio.
— Google reports agents using `android preview` complete UI tasks 77% faster, with token usage dropping to as little as one-third.
— `android device remote` reserves physical devices from Google's device lab and attaches them to local adb; `android device hub` shows local emulators and remote devices together.
— Official Android CLI plugins are available for Claude Code and Codex via `codex plugin marketplace add android/android-cli-plugin`.
— In a 40k-line open-source app with 45 user flows on 6 Android emulators on an Apple M4 Pro, using Android CLI took 45m57s and 3.5M tokens vs 88m17s and 4.6M tokens without—about 1.9x faster and 24% fewer tokens.
— The agent-found memory leak traced to ConnectivityManager holding an anonymous NetworkCallback that implicitly referenced a destroyed MainActivity, so the fix was to unregister the callback in the correct lifecycle method.
— `android signals` brings Firebase Crashlytics crashes, ANRs, and memory issues to the terminal, including OOM and Android 17 Memory Limiter Kill Heap Dumps, combined with R8 Mapping for symbol recovery.
— Compose 1.13's Recomposition Tracing records State read/write call stacks, letting agents see which composable recomposes and who writes the state—but has significantly higher overhead than ordinary composition tracing.
— AGP 9.3's R8 Configuration Analyzer (./gradlew :app:analyzeReleaseR8Config) computes shrinking, optimization, and obfuscation coverage scores and ranks keep rules without building a full APK.
— Lightbuild is an experimental project that replaces executable Gradle configuration with declarative YAML and pre-parsed dependencies for agent readability; Google recommends existing production projects stay on Gradle/Kotlin DSL.
— The overall direction unifies compilation, devices, UI previews, production exceptions, heap, and trace into agent-callable tool interfaces, matching Flutter's AI toolization trend.
Conclusions

Google is hedging its bets: the IDE becomes agent-hostile to those who hate opening it, while the CLI becomes the primary agent interface—effectively acknowledging that many developers no longer sit in Android Studio.

The 77% faster UI task completion and 24% token reduction in the leak example come from replacing heavy emulator and full-GC workflows with lean CLI commands, so the numbers are less about smarter AI and more about cutting infrastructure overhead.

Recomposition Tracing's much higher overhead is a practical warning: turning on this feature for every build would slow down development, so its value is mainly in targeted debugging sessions, not continuous profiling.

The CLI's success with Claude Code and Codex, rather than a Google-branded agent, signals that Android's agent strategy is to be model-agnostic and let third-party agents drive the tooling.

KMP's absence from this AI push is notable: while Android and Flutter both get agent-native tooling, Kotlin Multiplatform remains a second-class citizen in Google's AI workflow, which may push multi-platform teams toward Flutter.

Concepts & terms
ACP (Agent Client Protocol)
An open protocol that defines how an IDE like Android Studio communicates with programming agents, letting agents call IDE features such as project structure, build diagnostics, Logcat, and Compose Preview during a conversation.
MCP (Model Context Protocol)
A protocol for how agents connect to external tools and services (like databases, web APIs, or custom utilities). ACP handles the IDE-agent connection, while MCP handles agent-to-tool connections.
Bring Your Own Agent (BYOA)
A feature that allows developers to plug their own AI coding agent into an IDE instead of using the vendor's default, typically through a protocol like ACP.
android preview
An Android CLI command that renders Compose @Preview composables directly to PNG in the terminal, and can export a component tree JSON, without starting an emulator or opening Android Studio.
Recomposition Tracing
A Compose 1.13 trace feature that records State reads and writes during recomposition, showing which Composable recomposes and who writes the state, though with much higher runtime overhead than ordinary composition tracing.
R8 Configuration Analyzer
An AGP 9.3 tool that computes coverage scores for shrinking, optimization, and obfuscation, and ranks Keep Rules by impact, generating reports via ./gradlew :app:analyzeReleaseR8Config without building a full APK.
Lightbuild
An experimental Google project that replaces executable Gradle configuration with declarative YAML and pre-parsed dependencies, making build structures easier for AI agents to read and edit; Google recommends production projects stick with Gradle/Kotlin DSL for now.
From the discussion

The discussion veers away from the article's Android tooling focus, instead pressing the author to cover Dart's direct native interop and noting that AI has cut into technical documentation readership. A retort argues that not writing about a topic lets AI frame it however it chooses, while a reply to the interop request dismisses it as old news.

— The author should cover Dart's direct native interop, which has just been released.
— AI has made technical documentation less read, but the author's own silence on a topic allows AI to dictate how that topic is perceived.
— Dart's direct native interop is not new and does not warrant fresh coverage.
Featured comments
莫憎

In the AI era, far fewer people read technical documentation anymore. Guobao, what do you think?

恋猫de小郭

If you don't write, AI sees it that way, right?

栈与烟火

Direct native interop has been released. Xiao Guo, aren't you going to say something about it? https://dart.dev/interop

恋猫de小郭

Isn't this already old news?

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗