| **Preview:** The agent's project setup capability is available in Android Studio Otter 1 Canary 3. See the[preview release note](https://developer.android.com/studio/preview/features#new-project).

Use the power of generative AI to accelerate your Android development workflow. The agent can help you go from an idea to an app prototype in minutes.

The agent reduces the time you spend setting up dependencies, writing boilerplate code, and creating basic navigation, allowing you to focus on the creative aspects of app development.

## What you can build

The agent is capable of generating a variety of multiscreen apps:

- **Single-screen apps:**Build basic apps with static UI layouts, such as a profile screen, a settings page, or a calculator.
- **Multipage apps:**Create applications with basic navigation between screens, like a flashcard app for studying.
- **AI-enhanced apps:**Integrate Gemini APIs to add generative AI features to your app, such as a chatbot interface or a text summarizer.
- **Apps with public API integration:**Build apps that display data from public APIs, such as a weather app.

## Get started

To use the agent to set up a project, do the following:

1. Start Android Studio.
2. Select**New Project** on the**Welcome to Android Studio** screen (or**File \> New \> New Project**from within a project)

   ![The Welcome to Android Studion screen, which has the New Project, Open, and Clone Repository buttons.](https://developer.android.com/static/studio/gemini/images/welcome_to_android_studio.png)**Figure 1.**Start a new project.
3. Select**Create with AI**.

   ![The new project dialog, which has cards for various kinds of app templates, such as Empty Activity, Navigation UI Activity, and so forth. The dialog also has the 'Create with AI' control, which activates Gemini in Android Studio to set up a new project for you.](https://developer.android.com/static/studio/gemini/images/new_project.png)**Figure 2.**Select a project template or create your app with Gemini.
4. Type your prompt into the text entry field and click**Next**.

   ![The Create with AI dialog containing the prompt: A fitness tracker for a phone and watch, tracking running and cycling. The dialog includes buttons for selecting various types of apps, including a fitness tracker button.](https://developer.android.com/static/studio/gemini/images/what_do_you_want_to_build.png)**Figure 3.**Dialog for setting up a new project.
5. Name your app and click**Finish**to start the generation process.

## How it works

The agent uses an iterative, AI-driven process to build your app. Here's what you can expect:

1. **Describe your app:**You start by providing a natural language prompt describing your app idea. You can also include images, such as sketches or mockups, to guide the generation process.

2. **Review the plan:**Based on your prompt, Gemini in Android Studio generates a structured plan for your app. You'll have the opportunity to review and change the plan or have Gemini in Android Studio propose another plan.

3. **Approve and generate:**Once you approve the plan, Gemini in Android Studio begins its autonomous generation loop.

   - Generates the necessary code for all files.
   - Builds the project.
   - Analyzes any build errors and attempts to self-correct the code.
   - Continues looping until the project builds successfully.