Android Studio 3.5 (August 2019)

Android Studio 3.5 is a major release and a result of Project Marble. Beginning with the release of Android Studio 3.3, the Project Marble initiative has spanned multiple releases that focus on improving three main areas of the IDE: system health, feature polish, and fixing bugs.

For information about these and other Project Marble updates, read the Android Developers blog post or the sections below.

We also want to thank all of our community contributors who have helped with this release.

3.5.3 (December 2019)

This minor update includes various bug fixes and performance improvements.

3.5.2 (November 2019)

This minor update includes various bug fixes and performance improvements. To see a list of notable bug fixes, read the related post on the Release Updates blog.

3.5.1 (October 2019)

This minor update includes various bug fixes and performance improvements. To see a list of notable bug fixes, read the related post on the Release Updates blog.

Project Marble: System health

This section describes the changes in Android Studio 3.5 that are focused on improving system health.

Recommended memory settings

Android Studio now notifies you if it detects that you could improve performance by increasing the maximum amount of RAM that your OS should allocate for Android Studio processes, such as the core IDE, Gradle daemon, and Kotlin daemon. You can either accept the recommended settings by clicking the action link in the notification, or you can adjust these settings manually by selecting File > Settings (or Android Studio > Preferences on macOS), and then finding the Memory Settings section under Appearance & Behavior > System Settings. To learn more, see Maximum heap size.

A notification about recommended memory settings.

A notification about recommended memory settings.

Memory usage report

Memory problems in Android Studio are sometimes difficult to reproduce and report. To help solve this problem, Android Studio lets you generate a memory usage report by clicking Help > Analyze Memory Usage from the menu bar. When you do so, the IDE locally sanitizes the data for personal information before asking whether you want to send it to the Android Studio team to help identify the source of the memory issues. To learn more, see Run a memory usage report.

A memory usage report.

A memory usage report.

Windows: Antivirus file I/O optimization

Android Studio now automatically checks whether certain project directories are excluded from real-time antivirus scanning. When adjustments can be made to improve build performance, Android Studio notifies you and provides instructions on how to optimize your antivirus configuration. To learn more, see Minimize the impact of antivirus software on build speed.

Project Marble: Feature polish

This section describes the changes in Android Studio 3.5 that are focused on improving existing features.

Apply Changes

Apply Changes lets you push code and resource changes to your running app without restarting your app—and, in some cases, without restarting the current activity. Apply Changes implements a completely new approach for preserving your app’s state. Unlike Instant Run, which rewrote the bytecode of your APK, Apply Changes redefines classes on the fly by leveraging the runtime instrumentation supported in Android 8.0 (API level 26) or higher.

To learn more, see Apply Changes.

The toolbar buttons for Apply Changes.

The toolbar buttons for Apply Changes.

App deployment flow

The IDE has a new drop-down menu that lets you quickly select which device you'd like to deploy your app to. This menu also includes a new option that lets you run your app on multiple devices at once.

Target device drop-down menu.

Target device drop-down menu.

Improved Gradle sync and cache detection

The IDE now better detects when Gradle periodically clears your build cache when reducing its hard disk consumption. In previous versions, this state caused the IDE to report missing dependencies and Gradle sync to fail. Now, the IDE simply downloads dependencies as needed to ensure that Gradle sync completes successfully.

Improved build error output

The Build Build window icon window now provides better error reporting, such as a link to the file and line of the reported error, for the following build processes:

  • AAPT compilation and linking
  • R8 and ProGuard
  • Dexing
  • Resource merging
  • XML file parsing
  • Javac, Kotlinc, and CMake compilation

Project Upgrades

Improved update experience to provide more information and actions to help you update the IDE and the Android Gradle plugin. For example, more sync and build errors include actions to help you mitigate errors when updating.

It’s important to keep in mind, you can update the IDE independently of other components, such as the Android Gradle plugin. So, you can safely update the IDE as soon as a newer version is available, and update other components later.

Layout Editor

Android Studio 3.5 includes several improvements to layout visualization, management, and interaction.

When working with ConstraintLayout, a new Constraints section in the Attributes panel lists the constraints relationships of the selected UI component. You can select a constraint either from the design surface or from the constraints list to highlight the constraint in both areas.

Constraint relationships for a selected UI element.

Constraint relationships for a selected UI element.

Similarly, you can now delete a constraint by selecting it and pressing the Delete key. You can also delete a constraint by holding the Control key (Command on macOS) and clicking on the constraint anchor. Note that when you hold the Control or Command key and hover over an anchor, any associated constraints turn red to indicate that you can click to delete them.

When a view is selected, you can create a constraint by clicking on any of the + icons in the Constraint Widget section of the Attributes panel, as shown in the following image. When you create a new constraint, the Layout Editor now selects and highlights the constraint, providing immediate visual feedback for what you've just added.

An animation showing how to use the constraint widget to create
            constraints.

Using the constraint widget to create constraints .

When creating a constraint, the Layout Editor now shows only the eligible anchor points to which you can constrain. Previously, the Layout Editor highlighted all anchor points on all views, regardless of whether you could constrain to them. In addition, a blue overlay now highlights the target of the constraint. This highlighting is particularly useful when attempting to constrain to a component that overlaps with another.

An animation showing how to create a constraint for an overlapping
            component in Android Studio 3.4.

Creating a constraint for an overlapping component in Android Studio 3.4.

An animation showing how to create a constraint for an overlapping
            component in Android Studio 3.5.

Creating a constraint for an overlapping component in Android Studio 3.5.

In addition to the above updates, Android Studio 3.5 also contains the following Layout Editor improvements:

  • The Constraint Widget and default margin drop-down now allow you to use dimension resources for margins.
  • In the Layout Editor toolbar, the list of devices that determine the size of the design surface has been updated. In addition, snapping behavior while resizing has been improved, and the resizing handles on the design surface are now always visible. When resizing, new overlays appear that show common device sizes.
  • The Layout Editor has a new color scheme that improves consistency and reduces contrast between components, text, and constraints.
  • Blueprint mode now includes text support for some components where text wasn't being shown.

For more information about these changes, see Android Studio Project Marble: Layout Editor.

Data Binding

In addition to adding incremental annotation processing support for Data Binding, the IDE improves smart editor features and performance when creating data binding expressions in XML.

An animation showing code editor performance on Android Studio
            3.4.

Code editor performance on Android Studio 3.4.

An animation showing code editor performance on Android Studio
            3.5.

Improved code editing performance on Android Studio 3.5.

Improved support for C/C++ projects

Android Studio 3.5 includes several changes that improve support for C/C++ projects.

Build Variants panel improvements for single variant sync

You can now specify both the active build variant and active ABI in the Build Variants panel. This feature simplifies build configuration per module and can also improve Gradle sync performance.

To learn more, see Change the build variant.

Build Variants panel showing single variant selection by ABI.

The Build Variants panel with single variant selection by ABI.

Side-by-side versions of the NDK

You can now use multiple versions of the NDK side-by-side. This feature gives you more flexibility when configuring your projects—for example, if you have projects that use different versions of the NDK on the same machine.

If your project uses Android Gradle plugin 3.5.0 or higher, you can also specify the version of the NDK that each module in your project should use. You can use this feature to create reproducible builds and to mitigate incompatibilities between NDK versions and the Android Gradle plugin.

To learn more, seeInstall and configure the NDK, CMake, and LLDB.

ChromeOS Support

Android Studio now officially supports ChromeOS devices, such as the HP Chromebook x360 14, Acer Chromebook 13/Spin 13, and others that you can read about in the system requirements. To get started, download Android Studio on your compatible ChromeOS device and follow the installation instructions.

Note: Android Studio on ChromeOS currently supports deploying your app only to a connected hardware device. To learn more, read Run apps on a hardware device.

Conditional delivery for feature modules

Conditional delivery allows you to set certain device configuration requirements for feature modules to be downloaded automatically during app install. For example, you can configure a feature module that includes functionality for augmented reality (AR) to be available at app install for only devices that support AR.

This delivery mechanism currently supports controlling the download of a module at app install-time based on the following device configurations:

  • Device hardware and software features, including OpenGL ES version
  • User country
  • API level

If a device does not meet all the requirements you specify, the module is not downloaded at app install-time. However, your app may later request to download the module on demand using the Play Core Library. To learn more, read Configure conditional delivery.

IntelliJ IDEA 2019.1

The core Android Studio IDE has been updated with improvements from IntelliJ IDEA through the 2019.1 release, such as theme customization.

The last IntelliJ version that was included with Android Studio was 2018.3.4. For more information about the improvements from other IntelliJ versions that are included cumulatively with this release of Android Studio, see the following bug-fix updates:

Android Gradle plugin 3.5.0 updates

For information on what’s new in Android Gradle plugin 3.5.0, such as improved support for incremental annotation processing and cacheable unit tests, see its release notes.

Community contributors

Thank you to all of our community contributors who have helped us discover bugs and other ways to improve Android Studio 3.5. In particular, we'd like to thank the following people who reported P0 and P1 bugs: