Google has unveiled Android Studio Panda 2, featuring AI-driven capabilities powered by Gemini, a large language model from Google's family of AI tools. This release includes an AI agent capable of generating apps from scratch and an AI-driven version upgrade assistant.
AI Capabilities and Integration
The AI agent in Android Studio Panda 2 is designed to help developers create a working prototype with just a single prompt. It generates a detailed project plan and executes an automated loop of code generation, project building, error analysis, and self-correction until a complete implementation is achieved. To utilize these features, developers must sign into Gemini and enable AI integration.
Gemini offers a free tier, described as a lightweight version of Gemini 2.5 Pro, with a smaller context window. Professional developers are encouraged to subscribe to the business tier for enhanced capabilities. The AI settings allow configuration with other providers, but Gemini is the default option.
Privacy and Limitations
Developers are warned that Google will collect chat text, prompts, related code, and generated output, which may be reviewed by humans. A privacy dialog advises against including confidential information in prompts. For full Gemini features, project context use is required, and developers are advised to list confidential items in a .aiexclude file.
In a demonstration, Gemini was tasked with building a bridge deal analyzer. The AI agent produced a project plan and iterated over 15 minutes, asking for approval for each file edit. The generated app ran in the emulator but produced invalid bridge data, highlighting the limitations of the free tier and the need for improved prompts or integration with established open-source code.
Additional Features and Challenges
Outside of the AI enhancements, Android Studio remains a robust development environment, though it can be slow at times. The release notes mention deprecated features such as the Custom View preview and 3D mode in the layout inspector, with Jetpack Compose recommended for custom controls. Users have reported encountering Gradle plugin errors and long dependency syncs.