
Posted by Sandhya Mohan – Product Supervisor, Android Studio
As a part of the following chapter of our Gemini period, we introduced we had been bringing Gemini to extra merchandise. Right this moment we’re excited to announce that Android Studio is utilizing the Gemini 1.0 Professional mannequin to make Android improvement sooner and simpler, and we’ve seen vital enhancements in response high quality over the past a number of months by way of our inside testing. As well as, we’re making this transition extra obvious by saying that Studio Bot is now referred to as Gemini in Android Studio.
Gemini in Android Studio is an AI-powered coding assistant which could be accessed instantly within the IDE. It may possibly speed up your capability to develop high-quality Android apps sooner by serving to generate code to your app, offering advanced code completions, answering your questions, discovering related sources, including code feedback and extra — all with out ever having to go away Android Studio. It’s out there in 180+ international locations and territories in Android Studio Jellyfish.
For those who had been already utilizing Studio Bot within the canary channel, you’ll proceed experiencing the identical useful and highly effective options, however you’ll discover improved high quality in responses in comparison with earlier variations.
Ask Gemini your Android improvement questions
Gemini in Android Studio can perceive pure language, so you may ask improvement questions in your personal phrases. You’ll be able to enter your questions within the chat window starting from quite simple and open-ended ones to particular issues that you simply need assistance with.
Listed below are some examples of the forms of queries it could possibly reply:
- How do I add digital camera assist to my app?
- Utilizing Compose, I would like a login display screen with the next: a username area, a password area, a ‘Signal In’ button, a ‘Forgot Password?’ hyperlink. I need the password area to obscure the enter.
- What’s the easiest way to get location on Android?
- I’ve an ‘orders’ desk with columns like ‘order_id’, ‘customer_id’, ‘product_id’, ‘value’, and ‘order_date’. Are you able to assist me write a question that calculates the typical order worth per buyer over the past month?

Gemini in Android Studio remembers the context of the dialog, so you may as well ask follow-up questions, corresponding to “Are you able to give me the code for this in Kotlin?” or “Are you able to present me learn how to do it in Compose?”
Code sooner with AI powered Code Completions
Gemini in Android Studio may help you be extra productive by offering you with highly effective AI code completions. You’ll be able to obtain options of multi-line code completions, options for learn how to do feedback to your code, or learn how to add documentation to your code.

Designed with privateness in thoughts
Gemini in Android Studio was designed with privateness in thoughts. Gemini is simply out there after you log in and allow it. You don’t have to ship your code context to make the most of most options. By default, Gemini in Android Studio’s chat responses are purely based mostly on dialog historical past, and also you management whether or not you need to share further context for custom-made responses. You’ll be able to replace this anytime in Android Studio > Settings at a granular undertaking degree. We even have a customized approach so that you can choose out sure information and folders by way of an .aiexclude file. Very similar to our work on different AI tasks, we stick with a set of AI Rules that maintain us accountable. Study extra right here.

Construct a Generative AI app utilizing the Gemini API starter template
Not solely does Android Studio use Gemini that can assist you be extra productive, it could possibly additionally assist you make the most of Gemini fashions to create AI-powered options in your purposes. Get began in minutes utilizing the Gemini API starter template out there within the canary launch – channel for Android Studio – beneath File > New Undertaking > Gemini API Starter. It’s also possible to use the code pattern out there at File > Import Pattern > Google Generative AI pattern.
The Gemini API is multimodal, that means it could possibly assist picture and textual content inputs. For instance, it could possibly assist conversational chat, summarization, translation, caption era and so forth. utilizing each textual content and picture inputs.

Attempt Gemini in Android Studio
Gemini in Android Studio continues to be in preview, however we’ve got added many characteristic enhancements — and now a significant mannequin replace — since we launched the expertise in Might 2023. It’s at present no-cost for builders to check out. Now is a good time to check it and tell us what you suppose, earlier than we launch this expertise to steady.
Keep up to date on the most recent by following us on LinkedIn, Medium, YouTube, or X. Let’s construct the way forward for Android apps collectively!