New features in Android Studio Preview

This page lists the new features introduced in Android Studio preview releases. The preview builds provide early access to the latest features and improvements in Android Studio. You can download these preview versions. If you encounter any problems using a preview version of Android Studio, let us know. Your bug reports help to make Android Studio better.

Canary releases contain leading edge features under active development, and are lightly tested. While you can use Canary builds for development, be aware that features might be added or changed. Release Candidates (RC) are the next version of Android Studio, and are almost ready for stable release. The feature set for the next version has been stabilized. See Android Studio release names to understand Android Studio version naming.

For the latest news on Android Studio preview releases, including a list of notable fixes in each preview release, see the Release Updates in the Android Studio blog.

Current versions of Android Studio

The following table lists the current versions of Android Studio and their respective channels.

Version Channel
Android Studio Narwhal Feature Drop | 2025.1.2 Stable
Android Gradle plugin 8.12.0 Stable
Android Studio Narwhal 3 Feature Drop | 2025.1.3 Canary

Compatibility with Android Gradle plugin previews

Each preview version of Android Studio is published alongside a corresponding version of the Android Gradle plugin (AGP). Preview versions of Studio should work with any compatible stable version of AGP. However, if you're using a preview version of AGP, you must use the corresponding preview version of Studio (for example, Android Studio Chipmunk Canary 7 with AGP 7.2.0-alpha07). Attempts to use divergent versions (for example, Android Studio Chipmunk Beta 1 with AGP 7.2.0-alpha07) will cause a Sync failure, which results in a prompt to update to the corresponding version of AGP.

For a detailed log of Android Gradle plugin API deprecations and removals, see the Android Gradle plugin API updates.

Android Studio Narwhal 3 Feature Drop | 2025.1.3

The following are new features in Android Studio Narwhal 3 Feature Drop | 2025.1.3.

To see what's been fixed in this version of Android Studio, see the closed issues.

Journeys for Android Studio

Journeys for Android Studio helps make end-to-end tests easy to write and maintain by letting you use natural language to describe the steps and assertions for each test—called a journey. By leveraging Gemini's vision and reasoning capabilities, steps written in natural language are converted into actions that Gemini performs on your app, making it both easy to write and understand your journeys. Additionally, you can write and describe more complex assertions, which Gemini evaluates based on what it sees on the device in order to determine whether your journeys pass or fail.

And because Gemini reasons about which actions to perform to satisfy the goals, journeys are more resilient to subtle changes to your app's layout or behavior, resulting in fewer flaky tests when running against different versions of your app and different device configurations.

Write and run journeys right from Android Studio against any local or remote Android device. The IDE provides a new editor experience for crafting journeys as well as rich results that help you better follow Gemini's reasoning and execution of your journey.

Backup and Sync

You can now back up Android Studio settings to cloud storage using either your Google or JetBrains account. This helps sync your settings, such as keymaps, Code Editor settings, system settings, and more. To get started, do one of the following:

  • After opening a project in Android Studio, sign into your Google Account by clicking the avatar in the top-right corner of the IDE, and clicking Sign in.

    1. Follow the prompts in the dialog that appears and make sure to check the box to authorize Android Studio to access your Google Account Storage.
    2. Follow the prompts to authorize Android Studio.
  • Navigate to Settings > Backup and Sync.

    1. Select Google to use your Google Account Storage to sync your app data across Android Studio installs. Alternatively, you can use a JetBrains account to sync your app data across IntelliJ and Android Studio installs.
    2. After you follow the prompts to authorize Android Studio to access your preferred account's storage, return to Android Studio.
    3. On the Settings > Backup and Sync page, you can review the categories of app data that you want to sync to your account.
    4. To disable Backup and Sync, uncheck the box that enables the feature.

If you already have data synced to your selected device, Android Studio gives you the option to either download settings from your remote storage (this is the default option) or upload your local settings and overwrite settings synced to your remote storage.

Suggested fixes for crashes

In Android Studio Meerkat Feature Drop, we launched Gemini insights for crashes reported in the App Quality Insights tool window. Now, Android Studio can use Gemini to analyze the crash data along with your source code to suggest potential fixes. After selecting a crash in the App Quality Insights tool window, navigate to the Insights tab and click Suggest a fix after Gemini generates an insight for the crash. Gemini then generates suggested code changes that you can review and accept in an editor diff tab.

Resizable Compose previews

Compose Preview now supports dynamic resizing to give you instant visual feedback on how your UI adapts to different screen sizes.

To use the feature, enter Focus mode in Compose Preview by changing the view option on the toolbar:

Compose Preview Focus mode
Compose Preview Focus mode

You can now resize the preview window by dragging its edges:

Resizing the preview window by dragging its edges.

Or, you can use the resize toolbar, which is shown after the preview has been resized:

Resizing the preview window using the resize toolbar.

If you want to save the new size as a new Preview annotation, use the right-click menu:

Compose Resizeable Preview save new size
Compose Resizeable Preview save new size

The dynamic resize feature helps you create UIs that look great on any screen size.

Android view setting to display build files under corresponding modules

There is a new setting to display build files under their corresponding module in the Android view. This view can be helpful when you work on projects with many modules. To enable the view open the Options menu available next to the Android view. Then select Appearance > Display Build Files In Module.

Android View: Build Files In Module
Option to view build files under corresponding modules in Android View.

New setting to open new projects with the Project view

There is a new setting to have new projects open in Project view by default. To enable the setting go to File (Android Studio on macOS) > Settings > Advanced Settings > Project View and select Set Project view as the default.

Play Policy Insights beta in Android Studio

Android Studio now includes richer insights and guidance on Google Play policies that may impact your app. This information helps you build safer apps from the start, preventing issues that could disrupt your launch process and cost more time and resources to fix later on.

Starting with Android Studio Narwhal Feature Drop, you can see Play Policy Insights as lint checks. These lint checks will present the following information:

  • An overview of the policy.
  • Dos and don'ts to avoid common pitfalls.
  • Links to Play policy pages where you can find the full formal policy and more helpful information and resources.

This feature is intended to provide helpful pre-review guidance so you can have smoother app submission experiences. It does not cover every policy, nor does it provide final app review decisions. Always review the full policy in the Policy Center for guidance. We are also actively evolving and improving this integration. If you have any feedback, please report it.

To see if there are any Play Policy Insights for your project, go to Code > Inspect for Play Policy Insights… Insights will be listed in the 'Problems' tool window and they will also appear as Lint warnings in the corresponding files.

Play Policy Insights in Android Studio
Play Policy Insights in Android Studio Narwhal Feature Drop.

Test and develop with app backup and restore

Ensuring Android Backup and Restore works properly for your app is a critical aspect of ensuring users stay engaged with your app after switching to a new device or restoring from the cloud. However, testing whether data backup and restore is working for your app can be difficult.

Android Studio Narwhal provides ways for you to generate a backup for your app and restore it to another device. This can be useful for testing whether your app behaves as expected when restoring app data from device to device or from a cloud backup, or if you want a faster way to set up a test device with data you need to develop and debug your app.

Generate a backup

To generate a backup file, do the following:

  1. Deploy a debug version of your app to a connected device
  2. Use one of the following actions to generate a backup:
    • From the Running Device window, click the Backup App Data action from the toolbar
    • Select Run > Backup App Data from the main menu bar
    • From the Device Explorer > Processes tab, right-click on the app process and select Backup App Data
  3. In the dialog that appears, do the following:
    • Confirm the application ID for the app you want to generate a backup for
      • Select whether you want to generate a Device to Device, Cloud, or Cloud (Unencrypted) backup
    • Confirm the name and location of the backup you want to save. By default, the backup is saved to the root directory of the current Android Studio project.
      Generate a backup for your app.
  4. Click Ok when Android Studio asks if it can stop the app. To generate the backup, Android Studio must stop the app process.

You can view the backups that you generate in the Project > Android tool window under the Backup Files node.

Backup types

You can save different types of backups. When generating a backup, select the backup type that relates to the scenario you want to test:

  • Device-to-device: Generates a backup of your app data to simulate a device-to-device transfer, such as when a user sets up a new device while having access to their old device.
  • Cloud: Generates a backup that is saved to a user's Google Account Storage. This type of backup is used when a user sets up a new device while not having access to their old device. The backup data generated is encrypted.
  • Cloud (unencrypted): Creates an unencrypted version of the Cloud backup, which you can inspect for debugging purposes.

Backup types

You can generate different types of backup for your app. When generating a backup, select the backup type that relates to the scenario you want to test:

  • Device-to-device: Generates a backup of your app, similar to one created during device-to-device transfer. In device-to-device transfers the app's backup data is sent directly to another device, for example over USB or Wi-Fi.
  • Cloud: Generates a backup of your app, similar to one saved to the user's Google Account storage. When a user sets up a new device, they can choose to restore from a Cloud backup.
  • Cloud (unencrypted): Generates a backup of your app, similar to one saved to the user's Google Account storage on a device which does not have client side encryption enabled.

Note: When using the feature to test Cloud, Cloud (Unencrypted) or Device to Device backups, the generated backup is not sent to Cloud or to another device, unlike actual backup flow. It generates the backup of your app as if it was going to be saved to Cloud or to be sent to another device. The backups generated for any Backup type can be under Backup Files in Project > Android tool window.

Restore app data

To restore app data, do the following:

  1. Deploy your app to the connected device. The app should have the same application ID as the backup file you want to restore onto the device.
  2. Navigate to and click one of the following actions:
    • From the Running Device window, click the Restore App Data action from the toolbar, and either select a backup file from the recent history or click Browse.
    • Navigate to Run > Restore App Data from the main menu bar.
    • From the Device Explorer > Processes tab, right-click on the app process and select Restore App Data.
    • From the Project > Android tool window, right-click on a backup under the Backup Files node and select Restore App Data.
  3. If applicable, either select a backup from the recent history or click Browse to select a backup file to restore from local storage.

Alternatively, you can include a backup file as part of a run configuration, so that deploying your app also restores the app data from a backup file. To do this, do the following:

  1. Navigate to Run > Edit Configurations from the main menu bar.
  2. Select an app run configuration and navigate to Restore options.
    Restore options in a run configuration.
  3. To restore an app from a backup, check the box next to Restore app state.
  4. Either select a backup file from recent history or browse and select the backup file from local storage.
  5. If you only want to restore app data on a fresh app installation, check the box next to Only restore on fresh apk installation. This option can be helpful if you are deploying to a new test device and want to restore data to aid in debugging and app development.
  6. Click OK to save the run configuration.
  7. Deploy your app using the run configuration to test restoring your app data to a connected device.

Compose Preview Screenshot Testing tool

Use the Compose Preview Screenshot Testing tool to test your Compose UIs and prevent regressions. The new tool helps you generate HTML reports that let you visually detect any changes to your app's UI. Learn more at Compose Preview Screenshot Testing.

Embedded Layout Inspector component tree enhancement

Interacting with the component tree in the Embedded Layout Inspector is now more intuitive and efficient thanks to several key improvements. These updates are designed to streamline your workflow and provide clearer insights into your Compose UI structures.

  1. Horizontal Scrolling: You can now scroll horizontally within the component tree, making it easier to navigate and inspect wide or deeply nested layouts without losing context.
  2. Automatic Scrolling on Selection: Selecting an item in the component tree will now automatically scroll the view, both horizontally and vertically, to bring the selected item neatly into focus. This ensures the element you're interested in is always front and center.
  3. Improved Relationship Visualization: We've refined the support lines within the component tree to offer more explicit visual cues for understanding node relationships. Dotted lines now clearly indicate a call stack relationship between a parent and its child node, helping you trace programmatic connections more effectively. Solid lines continue to represent all other standard parent-child relationships within the tree.

These enhancements aim to provide a smoother, more efficient debugging experience, allowing you to quickly understand and refine your UI.

The component tree in the Embedded Layout Inspector now supports horizontal scrolling and automatic scrolling on selection.
Embedded Layout Inspector Component Tree Enhancement