
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 steady launch, able to sort out your most advanced coding challenges. This launch additionally brings highly effective new instruments for XR improvement, continued high quality enhancements, and key updates to reinforce your productiveness and enable you construct high-quality apps.
Dive in to be taught 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 improvement 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 checks, 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, akin to studying and writing recordsdata and performing Gradle duties, and might span a number of recordsdata in your venture. It then iteratively suggests code modifications, and also you’re all the time in management—you’ll be able to evaluate, settle for, or reject the proposed modifications and ask the agent to iterate primarily based in your suggestions. Let the agent deal with the heavy lifting whilst 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 steady channel sooner than ever earlier than, with the intention to get your arms on it. Attempt it out and tell us what you construct.

At the moment, the default mannequin supplied 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 a view to get the most effective efficiency from Agent Mode, you’ll be able to deliver your individual key for the general public Gemini API. When you add your Gemini API key with a paid GCP venture, you’ll then be capable to use the newest Gemini 2.5 Professional with a full 1M context window from Android Studio. Bear in mind to select the “Gemini 2.5 Professional” from the mannequin picker within the chat and agent enter bins.

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 customized code help. You possibly can set these preferences as soon as, and so they’ll be robotically utilized to all subsequent prompts despatched to Gemini. For instance, you’ll be able to create a rule akin to, “At all times present concise responses in Kotlin utilizing Jetpack Compose.” You too can set guidelines on the IDE degree for private use throughout initiatives, or on the venture degree, which may be shared with teammates by including the .thought folder to your model management system.

Rework UI with Gemini [Studio Labs]
Now you can remodel UI code inside the Compose Preview setting utilizing pure language, immediately within the preview. This experimental characteristic, out there via Studio Labs, hastens UI improvement by letting you iterate with easy textual content instructions. To make use of it, right-click within the Compose Preview and choose Rework UI With Gemini. Then enter your pure language requests, akin to “Heart 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 evaluate and approve.

Immersive improvement
XR Android Emulator and template
Kickstart your prolonged actuality improvement! Android Studio now contains:
- 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 Structure 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 strong basis with boilerplate code to start your immersive expertise improvement journey immediately.


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

Android Accomplice Machine Labs out there with Android Machine Streaming
Android Accomplice Machine Labs are system labs operated by Google OEM companions, akin to Samsung, Xiaomi, OPPO, OnePlus, vivo, and others, and develop the collection of units out there in Android Machine Streaming. To be taught extra, see Hook up with Android Accomplice Machine 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 leap 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 via 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 fair sooner, extra sturdy improvement expertise in Kotlin.

16 KB web page dimension help
That can assist you put together for the way forward for Android {hardware}, this launch provides improved help for transitioning to 16 KB web page sizes. Android Studio now provides proactive warnings when constructing apps which can be incompatible with 16 KB units. You need to use 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 setting, a devoted 16 KB emulator goal can also be out there within the AVD Supervisor.


Providers compatibility coverage
Android Studio provides service integrations that enable you and your group make sooner progress as you develop, launch, and keep Android apps. Providers are continuously evolving and will turn into incompatible with older variations of Android Studio. Subsequently, we’re introducing a coverage the place options that rely on a Google Cloud service are supported for roughly a yr 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’ll be able to replace it.

Abstract
To recap, Android Studio Narwhal Function Drop contains 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 to your venture’s requirements.
- Rework preview with Gemini [Studio Labs]: Use pure language to iterate on Compose UI.
Immersive improvement
- 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 improvement.
- Embedded Structure Inspector for XR: Debug and optimize your UI in an XR setting.
- Android Accomplice Machine Labs out there with Android Machine Streaming: entry extra Google OEM companion units.
Optimize and refine
- Compose preview enhancements: Higher navigation and a brand new picker for a smoother workflow.
- K2 mode by default: Sooner efficiency with the next-gen Kotlin compiler.
- 16KB web page dimension help: Lint warnings, evaluation, and an emulator to organize for brand spanking new units.
- Providers compatibility coverage: Keep up-to-date for entry to built-in Google companies.
Get began
Able to speed up your improvement? 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.
Examine 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!
