BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Android Studio Quail 2 Redesigns Agent Mode, Streamlines AI-Assisted Coding

Android Studio Quail 2 Redesigns Agent Mode, Streamlines AI-Assisted Coding

Listen to this article -  0:00

The latest release of Android Studio, Quail 2, now stable, expands Gemini/AI Agent Mode inside the IDE by enabling multiple AI conversations in parallel and further advancing Google's push to integrate AI-powered workflows directly into Android Studio. It also enhances debugging and profiling capabilities and makes it easier to explore experimental features.

Google says that Agent Mode has been completely redesigned in Quail 2, delivering improved performance, more effective task decomposition, and enhanced tool support. Most notably, the new design allows developers to work across multiple agent conversations simultaneously:

Waiting for the Android Studio agent to finish a task before you can ask another question or initiate a separate task in Agent Mode is a bottleneck of the past. You can multi-task seamlessly: kick off a UI refactor in one tab, fix a ProGuard rule in a second, and generate documentation in a third.

Android Studio's agent mode supports multiple large language models beyond Gemini. To help developers know which models perform better for specific tasks, Google has created a dedicated benchmark for Android development, Android Bench. This benchmark evaluates models against a set of common development tasks while incorporating Android best practices across areas such as permissions, navigation, connectivity, and more.

Android Studio Quail 2 also improves support for memory leak detection by integrating the popular open-source LeakCanary into the IDE:

This integration transforms your debugging performance by lifting and shifting the heap analysis off your resource-constrained testing phone, and onto your powerful development computer. By running the analysis on your computer, leak tracing is up to five times faster and jank-free, leaving your test app running smoothly on the device.

Once a leak is detected, the IDE makes it easy to jump to the exact line of code responsible, fix it with agent mode, or have the model explain the root cause of the retained reference.

Another area where agent mode integration can significantly assist developers, according to Google, is in tracking down the root cause of crashes. With App Quality Insights (AQI) now being fully integrated into Android Studio, the IDE can automatically synthesize stack traces, device data, and source code to identify an issue and suggest fixes. When addressing a crash, the agent analyzes the root cause, propose sa step-by-step fix plan, and allows the developer to review it before applying the necessary changes to the project and verifying the fix.

Android Studio also stabilizes Studio Labs, a feature aimed at allowing developers to discover and test experimental AI features without upgrading the IDE.

As a final note, Android Studio Quail 2 also includes the latest stability and performance improvements from the IntelliJ platform.

About the Author

Rate this Article

Adoption
Style

BT