Google today launched Android Studio 3.5, the latest version of its integrated development environment (IDE), with a specific focus on “product quality.” This release is the last one under Project Marble, a fancy name for an initiative Google announced late last year to improve Android Studio.
For eight months, the team focused “on making the fundamental features and flows of Android Studio & Emulator rock-solid.” All the improvements were either to system health, feature polish, or bug fixes.
To improve system health, Google created a new set of infrastructure and internal dashboards to better detect performance problems. The team ultimately fixed over 600 bugs, 50 memory leaks, and 20 IDE hangs and improved XML & Kotlin typing latency.
For the Android Emulator, the team decreased the CPU and memory impact. The team also took a look at app deployment flow to a device, replacing Instant Run with Apply Changes.
The new system no longer modifies an APK during your build. Instead, it uses runtime instrumentation to redefine classes on the fly.
You can download Android Studio 3.5 for Windows, Mac, and Linux now directly from developer.android.com/studio. If you are already using Android Studio, you can get the latest version in the navigation menu (Help => Check for Update on Windows/Linux and Android Studio => Check for Updates on OS X).
Google released Android Studio 3.4 in April. The version number 3.5 would suggest this isn’t a significant release, but if you build for Android, you should probably take a peek at the list below.
Android Studio 3.5 Features
Here’s the rundown of what version 3.5 brings to the table:
- Auto-recommend Memory Settings: The IDE now recognizes when an app project needs more RAM on a machine with higher RAM capacity and will notify you to increase the memory heap size. You can also adjust the settings yourself (Appearance & Behavior => Memory Settings).
- User Interface Freezes: XML typing has been optimized. Editing data binding expressions in XML is faster due to typing latency improvements.
- Build Speed: Incremental build support has been added to the top annotation processors including Glide, AndroidX data binding, Dagger, Realm, and Kotlin (KAPT). Incremental support can make a notable impact on build speed.
- Disk I/O File Access Speed: For Windows users, the default configuration of anti-virus scanners does not optimally exclude build output folders. Android Studio now detects this and helps guide you through the optimal setup.
- Apply Changes: The new Apply Changes features is a rewrite of Instant Run, which now enables you to quickly see your code edits on an emulator or device without restarting your app is great for app development. Unlike Instant Run, Apply Changes does not modify your APK which means it is reliable and has a predictable behavior. To support the changes, the entire deployment pipeline has been re-architected to improve deployment speed. The run and deployment toolbar buttons have also been tweaked for a more streamlined experience.
Android Studio 3.5 also includes the usual performance improvements and bug fixes on top of the new features (full release notes). Google didn’t share its plans for the next version.