Android Studio Bot (GEMINI)

Abhishek Srivastava
3 min readApr 11, 2024

Android Studio Bot is a AI-powered coding platform designed by google within android studio which is free of cost to the developers. It provide a interface like as Chat-GPT to ask any programming problem and it will be provide the solution to the developer. An Android Studio bot supports more than 180 countries also provide solution of like code generation, best practice etc. Check the Gemini supported countries here.

Gemini is still an early experiment, and might sometimes provide inaccurate, misleading or false information while presenting it confidently. Gemini might give you working code that doesn’t produce the expected output, or provide you with code that is not optimal or incomplete. Always double-check Gemini’s responses and carefully test and review code for errors, bugs, and vulnerabilities before relying on it. Gemini’s new capabilities can help you by offering new ways to write code, create test cases, or update APIs.

History Of Gemini

In May 2023, during the Google I/O developer event, the company introduced Studio Bot powered by the PaLM-2 foundation model. The company is rolling out Gemini in Android Studio in more than 180 countries for the Android Studio Jellyfish version.

In February, Google also updated the base model for the Bard chatbot from PaLM-2 to Gemini Pro.

Just like the Studio Bot, the new Gemini bot lives in the IDE (integrated development environment) and developers can ask coding-related questions.

The company said developers should notice improved answer quality in code completions, debugging, finding relevant resources and writing documentation.

Google said that for privacy reasons, users will have to log in and enable Gemini explicitly to use it. Plus, the chatbot’s responses are dependent mostly on the conversation history and context provided by the developer.

The company said users can easily access the Gemini API starter template through Android Studio to add generative AI-powered features to their apps.

Extra feature of Gemini as compared to Copilot

  1. Beyond answering questions, Gemini can provide context-based code completions if you also permit it to read your code. If you want these contextual suggestions but don’t want Gemini to access certain files or folders, you can create an “.aiexclude” file to block access. This gives you full control over what context Gemini can use when offering code completion and other AI features.
  2. Gemini can also help you create your own AI-powered experiences. In the latest Android Studio Canary release (currently Koala), you can find the new “Gemini API Starter” project template, which creates a simple foundation to start working with text- and image-based Google AI. For a more complete example, there’s also a new “Google Generative AI” code sample included.

Android Gemini Setup

  1. Download the latest version of Android Studio Jellyfish or higher.
  2. Recommended: Agree to send data to Google so we can better understand how effective Gemini is. Give permission to share data either when you first install Android Studio or later at File > Settings > Appearance & Behavior > System Settings > Data Sharing (Android Studio > Settings > Appearance & Behavior > System Settings > Data Sharing on macOS).
  3. To launch Gemini, open or start an Android Studio project and click View > Tool Windows > Gemini.
  4. Sign in to your Google account when asked, if you aren’t already signed in. The chat box appears and you can start using Gemini’s interactive, conversational interface.

Its just a beginning of Android Bot, In upcoming android studio Gemini there are lots of other feature also be available. As its just experimental right now so not enough detail of now. In next part we will be discussed lots of other feature and prompt detail to ask query from Bot.

Thanks for reading…

--

--

Abhishek Srivastava

Senior Software Engineer | Android | Java | Kotlin | Xamarin Native Android | Flutter | Go