Gemini in Android Studio features

Gemini in Android Studio includes features for every step of the development process. Gemini is a rapidly developing space, so also check Android Studio's stable release notes and preview release notes for the latest updates.

Category Feature Description Docs
Chat Chat The original interface for interacting with Gemini. Ask Gemini your Android related questions at any point in your development workflow. Chat with Gemini
Attach files Attach files to your query to help Gemini better understand the context for your question and identify what code needs to be updated.

Enable through Studio Labs.
Attach files
Attach images Attach an image to your query to help generate UI, debug UI bugs, document an app's architecture, and more.

Currently in the no-cost tier only.
Enable through Studio Labs.
Attach images
Prompt Library (in-IDE) Save and manage your frequently used prompts and quickly recall them when needed. Save and manage prompts with the Prompt Library
Rules Define preferences for Gemini's responses to your queries. Define preferred coding languages, styles, output formats, and more. Customize your experience with Rules
Prompt Gallery Browse our collection of prompts to get inspiration on how to incorporate Gemini in to your workflow. Prompt gallery
Integration with external tools Retrieve information and perform actions related to external tools without leaving Android Studio. Type @ to bring up a list of tools and select one to include in your prompt for Gemini. For example, you can ask Gemini to list your recent Google docs by typing "@GoogleDocs list my recent docs".

Business tier subscribers only.
Agent mode Agent mode Agent mode is designed to handle complex, multi-stage development tasks that go beyond what you can experience by just chatting with Gemini. The agent can make changes across multiple files and iteratively fix bugs, accelerating your development process. Agent mode
Add an API key For agent mode: add an API key to expand the context window and get even higher quality responses.

Only applicable to users on the default model of the no-cost tier.
Add your own Gemini API key
Add an MCP server For agent mode: interact with external tools and extend knowledge and capabilities using the Model Context Protocol (MCP). Add an MCP server
Code Code completion Gemini offers AI-enabled autocompletion of code in Android Studio that appears as gray italicized text as you type. Code completion saves you time and lets you complete coding projects faster by suggesting full functions. Accelerate coding with AI code completion
Code transformation Prompt Gemini from the code editor for code suggestions to modify, optimize, or add code to your project. Transform code
Rethink variable names Get suggestions from Gemini for how to rename one or all variables in a file. Rethink variable names
Generate unit test scenarios Gemini can suggest test scenarios using the context of the code you want to test. When generating unit test scenarios, Gemini includes detailed names and descriptions for your tests, so that you better understand the intention for each suggested test. Generate unit test scenarios
Journeys with Gemini Write end-to-end functional tests, called journeys, by describing the steps and assertions using natural language. Gemini converts your steps into actions that Gemini performs on your app. Currently in preview.

Currently in preview.
Journeys for Android Studio
Document code Generate clear and concise documentation for your code with instant drafts that you can refine and perfect. Generate documentation for your code
Generate commit messages Gemini can use the context from your code changes and recent past commits to generate a commit message. Generate commit messages
Code customization Code customization lets you get code suggestions that are based on your organization's private repositories and thus abide by your organization's coding style.

Business tier subscribers only.
Code customization overview
Compose Compose preview generation Gemini can automatically generate Compose previews, including mock data for preview parameters, for a specific composable or all composables in a file.

Enable through Studio Labs.
Generate Compose previews
Transform UI Use natural language to update your app UI directly from the Compose preview panel.

Enable through Studio Labs.
Transform UI
Android-powered integrations Analyze crashes with App Quality Insights Use Gemini to analyze your App Quality Insights crash reports, generate insights, provide a crash summary, and (when possible) recommend next steps, including sample code and links to relevant documentation. Analyze crashes with App Quality Insights and Gemini
Analyze runtime errors with Logcat Gemini in Android Studio helps you understand and resolve errors from the Logcat window, streamlining your debugging process. When your app throws an error or exception, click "Ask Gemini" to get immediate explanations and actionable suggestions without leaving the IDE. Analyze runtime errors with Logcat and Gemini
Get help with build and sync errors Gemini understands Gradle build and sync errors. When errors occur, click the "Ask Gemini" link in the build output to help you diagnose and fix the problems.
Privacy and security Configure context sharing Configure which files specifically are shared with Gemini using .aiexclude files. Configure context sharing
Logging Collect Gemini activity in Cloud Logging, including prompts and reponses and metadata such as lines of code accepted by the user.

Business tier subscribers only.
Configure Gemini Code Assist Standard and Enterprise logging
VPC service controls Establish a secure and controlled environment for coding to protect sensitive data and intellectual property.

Business tier subscribers only.
Configure VPC Service Controls for Gemini
Control network access with user domain restrictions Restrict access to Gemini based on user domains.

Business tier subscribers only.
Control network access with user domain restrictions
Other Productivity metrics Track your team's usage of Gemini in Android Studio and the impact it's had on your work, including metrics such as the rate of acceptance of code recommendations.

Business tier subscribers only.
Generate Gemini Code Assist metrics