From the course: Building AI-Powered Android Apps with Gemini

Configure Android Studio to use Gemini

- [Instructor] Gemini in Android Studio, originally known as Studio Bot, is an AI-driven coding companion that can generate code and answer your Android development questions. You'll need a recent version of Android Studio. When I recorded this video, Android Studio Meerkat was available as a stable release. Before using Gemini in Android Studio, you'll need to create a project. I'll create a new project using the empty activity template. I'll accept all the default settings and click Finish. You can open up Gemini in Android Studio either from the menu, go to View, Tool Windows, and then Gemini, or you can go to the Gemini icon that appears on the right rail. If this is the first time you've used Gemini in Android Studio, you'll see this prompt asking you to log into your Google account. Note that Gemini is free during this preview, but there may be cost associated with it in the future. Also, you may see this link that takes you to a page showing you which countries Gemini is currently supported in. Note that Gemini in Android Studio only works in English at this point. Follow the prompt to log into the Google account. I'll continue with these prompts, accepting all the offers, and then after I see this prompt, I'll return back to Android Studio, and I'll see that I'm now authorized. I'll click Next. Then after reviewing the privacy notice, I'll click Next again. I'll indicate that I'm at least 18 years of age, and I'll click Next. And then on this screen, I'll choose one of these options. These options control your level of privacy, and you can change these values later. I'm going to use context for my projects to improve my responses. That's going to mean that Gemini can see my code and will be sending my code to a server-based process. If you don't want that to happen, choose one of the other options. I'll click Finish, and now I'm ready to use Gemini in Android studio. I'm ready to ask questions and use Gemini's code completion tools.

Contents