Google today launched Android Studio 3.1, the latest version of its integrated development environment (IDE), with new features around product quality and app development productivity. You can download the new version 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.0 in October. As the version number indicates, version 3.1 isn’t as significant a release, but it’s still worth an update if you build for Android.
Here’s the rundown of what version 3.1 brings to the table:
Kotlin Lint Checks — Lint code quality checks have been enhanced so that now you can run them via the command line as well as from the IDE. Just open a Android Studio project, and run gradlew lint via command line.
Database Code Editing — Editing inline SQL/Room Database code is now even easier thanks to SQL code completion in your @Query declarations, better SQL statement refactoring, and SQL code navigation across your project.
IntelliJ Platform Update: IntelliJ 2017.3.3 brings many new features such as new Kotlin language intentions and built-in support for SVG image preview.
D8 Dex Compiler — D8 is now the default dex compiler. Replacing the legacy DX compiler, D8 dexing is an under the hood APK compilation step that makes your app size smaller, enables accurate step debugging, and often leads to faster builds. Ensure that your gradle.properties either has no android.enableD8 flag, or if it does ensure that it is set to true.
New Build Output Window — An updated Build output window organizes build status and errors in a new tree view. This change also consolidates the legacy Gradle output into this new window.
Quick Boot — Allows you to resume your Android Emulator session in under six seconds. Like a physical Android device, the emulator must perform an initial cold boot, but subsequent starts are fast. The feature is enabled by default for all Android Virtual Devices. You also now have finer grain controls of when to use Quick Boot and the ability to save the quick boot state on demand under the emulator settings page.
System Images and Frameless Device Skins — The latest version of the Android Emulator now supports the Google Play Store and Google APIs on API 24 (Nougat) — API 27 (Oreo) emulator systems images as well as the P Developer Preview. Additionally the device emulator skins are updated to work in a new frameless mode, which can help you test your app with 18:9 screen aspect ratios, or Android P Developer Preview DisplayCutout APIs.
C++ CPU Profiling — In addition to performance profiling your Kotlin and Java language app code, you can now profile your C++ code in your app. Using simpleperf as backend, the C++ profiler allows you to record C++ method traces.
Network Profiler Updates: Threads & Network Request — A new Network Thread view lets you inspect multithreaded network traffic, and a new Network Request tab can help dig into the network requests over time.
This release also includes many stability and performance fixes in addition to the new features (full release notes). Google didn’t mention its plans for the next version.