Posted by Paris Hsu – Product Supervisor, Android Studio
The following wave of innovation is right here with Android Studio Narwhal Function Drop. We’re thrilled to announce that Gemini in Android Studio’s Agent Mode is now out there within the secure launch, able to deal with your most advanced coding challenges. This launch additionally brings highly effective new instruments for XR growth, continued high quality enhancements, and key updates to reinforce your productiveness and enable you construct high-quality apps.
Dive in to study extra about all of the updates and new options designed to supercharge your workflow.

Develop with Gemini
Check out Agent Mode
Transcend chat and assign duties to Gemini. Gemini in Android Studio’s Agent Mode is a robust AI characteristic designed to deal with advanced, multi-stage growth duties. To make use of Agent Mode, click on Gemini within the sidebar after which choose the Agent tab. You possibly can describe a high-level objective, like including a brand new characteristic, producing complete unit exams, or fixing a nuanced bug.
The agent analyzes your request, breaks it down into smaller steps, and formulates an execution plan that makes use of IDE instruments, reminiscent of studying and writing recordsdata and performing Gradle duties, and may span a number of recordsdata in your venture. It then iteratively suggests code adjustments, and also you’re all the time in management—you possibly can evaluation, settle for, or reject the proposed adjustments and ask the agent to iterate primarily based in your suggestions. Let the agent deal with the heavy lifting when you concentrate on the larger image.
After releasing Agent Mode to Canary, we had optimistic suggestions from the builders who tried it. We have been so excited concerning the characteristic’s potential, we moved it to the secure channel sooner than ever earlier than, as a way to get your fingers on it. Attempt it out and tell us what you construct.

Presently, the default mannequin provided within the free tier in Android Studio has a shorter context size, which might restrict the depth of response from some agent questions and duties. With the intention to get the very best efficiency from Agent Mode, you possibly can convey your personal key for the general public Gemini API. When you add your Gemini API key with a paid GCP venture, you’ll then have the ability to use the newest Gemini 2.5 Professional with a full 1M context window from Android Studio. Keep in mind to choose the “Gemini 2.5 Professional” from the mannequin picker within the chat and agent enter packing containers.

Guidelines in immediate library
Tailor the response from Gemini to suit your venture’s particular wants with Guidelines within the immediate library. You possibly can outline most popular coding kinds, tech stacks, languages, or output codecs to assist Gemini perceive your venture requirements for extra correct and personalised code help. You possibly can set these preferences as soon as, they usually’ll be routinely utilized to all subsequent prompts despatched to Gemini. For instance, you possibly can create a rule reminiscent of, “All the time present concise responses in Kotlin utilizing Jetpack Compose.” It’s also possible to set guidelines on the IDE stage for private use throughout tasks, or on the venture stage, which could be shared with teammates by including the .thought folder to your model management system.

Remodel UI with Gemini [Studio Labs]
Now you can rework UI code inside the Compose Preview surroundings utilizing pure language, immediately within the preview. This experimental characteristic, out there by way of Studio Labs, hurries up UI growth by letting you iterate with easy textual content instructions. To make use of it, right-click within the Compose Preview and choose Remodel UI With Gemini. Then enter your pure language requests, reminiscent of “Middle align these buttons,” to information Gemini in adjusting your format or styling, or choose particular UI components within the preview for higher context. Gemini will then edit your Compose UI code in place, which you’ll be able to evaluation and approve.

Immersive growth
XR Android Emulator and template
Kickstart your prolonged actuality growth! Android Studio now consists of:
- XR Android Emulator: The XR Android Emulator now launches embedded inside the IDE by default. You possibly can deploy your Jetpack app, navigate the 3D area, and use the Embedded Format Inspector immediately inside Android Studio.
- XR template: Get a head begin in your subsequent venture with a brand new template particularly designed for Jetpack XR. This supplies a stable basis with boilerplate code to start your immersive expertise growth journey straight away.


Embedded Format Inspector for XR
The embedded Format Inspector now helps XR purposes, which helps you to examine and optimize your UI layouts inside the XR surroundings. Get detailed insights into your app’s part construction and determine potential format points to create extra polished and performant experiences.

Android Accomplice System Labs out there with Android System Streaming
Android Accomplice System Labs are gadget labs operated by Google OEM companions, reminiscent of Samsung, Xiaomi, OPPO, OnePlus, vivo, and others, and develop the collection of units out there in Android System Streaming. To study extra, see Hook up with Android Accomplice System Labs.

Optimize and refine
Jetpack Compose preview high quality enhancements
We have made a number of enhancements to Compose previews to make UI iteration sooner and extra intuitive:
- Improved code navigation: Now you can click on on a preview’s identify to immediately soar to its @Preview definition, or click on a person part inside the preview to navigate on to the operate the place it is outlined. Hover states and improved keyboard arrow navigation make shifting by way of a number of previews a breeze.
- Preview picker: The brand new Compose preview picker is now out there. You possibly can click on any @Preview annotation in your Compose code to entry the picker and simply handle your previews.


K2 mode by default
Android Studio now makes use of the K2 Kotlin compiler by default. This next-generation compiler brings important efficiency enhancements to the IDE and your builds. By enabling K2, we’re paving the way in which for future Kotlin programming language options and a good sooner, extra strong growth expertise in Kotlin.

16 KB web page dimension assist
That can assist you put together for the way forward for Android {hardware}, this launch provides improved assist for transitioning to 16 KB web page sizes. Android Studio now affords proactive warnings when constructing apps which can be incompatible with 16 KB units. You should utilize the APK Analyzer to determine which particular libraries in your venture are incompatible. Lint checks additionally spotlight the native libraries which aren’t 16 KB aligned. To check your app on this new surroundings, a devoted 16 KB emulator goal can also be out there within the AVD Supervisor.


Companies compatibility coverage
Android Studio affords service integrations that enable you and your workforce make sooner progress as you develop, launch, and preserve Android apps. Companies are always evolving and will grow to be incompatible with older variations of Android Studio. Due to this fact, we’re introducing a coverage the place options that rely on a Google Cloud service are supported for roughly a 12 months in every model of Android Studio. The IDE will notify you when the present model is inside 30 days of turning into incompatible so you possibly can replace it.

Abstract
To recap, Android Studio Narwhal Function Drop consists of the next enhancements and options:
Develop with Gemini
- Gemini in Android Studio: agent mode: use Gemini for tackling advanced, multi-step coding duties.
- Guidelines in Immediate Library: Customise Gemini’s output in your venture’s requirements.
- Remodel preview with Gemini [Studio Labs]: Use pure language to iterate on Compose UI.
Immersive growth
- Embedded XR Android Emulator: Take a look at and debug XR apps immediately inside the IDE.
- XR template: A brand new venture template to kickstart XR growth.
- Embedded Format Inspector for XR: Debug and optimize your UI in an XR surroundings.
- Android Accomplice System Labs out there with Android System Streaming: entry extra Google OEM accomplice units.
Optimize and refine
- Compose preview enhancements: Higher navigation and a brand new picker for a smoother workflow.
- K2 mode by default: Quicker efficiency with the next-gen Kotlin compiler.
- 16KB web page dimension assist: Lint warnings, evaluation, and an emulator to organize for brand new units.
- Companies compatibility coverage: Keep up-to-date for entry to built-in Google companies.
Get began
Able to speed up your growth? Obtain Android Studio Narwhal Function Drop and begin exploring these highly effective new options at this time! As all the time, your suggestions is essential to us.
Verify recognized points, report bugs, recommend enhancements, and be a part of our vibrant neighborhood on LinkedIn Medium, YouTube, or X. Let’s construct the way forward for Android apps collectively!
