News

Android Studio 3.1 Beta 1 Released – Comes with New DEX Compiler

Developers rejoice, Google has just launched its next major Android Studio iteration, Android Studio 3.1 Beta 1, for all to enjoy. The new Beta comes right after Google started pushing Android Studio 3.0 to all stable channels. In the past few revisions, we have seen Android Studio grow quite a lot. From better emulator load times to a cleaner UI, Android Studio is becoming the go-to IDE for all. Talking about Android Studio 3.1 Beta 1, it improves on a number of things. Key highlight, as mentioned in the title, is the new DEX compiler also referred to as D8. You can read ahead to see what changes the new Android Studio 3.1 Beta 1 has brought through the official change-log.

Kotlin, Google’s own programming language for Android, now has even better support with Android Studio 3.1 Beta 1. Developers are still gradually adapting to Kotlin so it is good that the brand is doing everything it can to encourage them towards this new standard. The complete list of new features coming with Android Studio 3.1 Beta 1 are attached right below.

What’s New in Android Studio 3.1 Beta 1:

The latest preview version is Android Studio 3.1 and this page provides a summary of all the new features and changes. All these features are available in the latest canary release, and might not be available in the beta release channel yet.

  • New DEX compiler
    • By default, Android Studio 3.1 Canary 1 and higher use a new DEX compiler called D8, which was announced on the Android Developers Blog.
    • DEX compilation is the process of transforming .class bytecode into .dex bytecode for the Android Runtime (or Dalvik, for older versions of Android). Compared to the current compiler, called DX, D8 compiles faster and outputs smaller DEX files, all while having the same or better app runtime performance.
  • Updates to the Android Profilers
    Depending on which Preview version you’re using, Android Studio 3.1 includes the following updates to the Android Profilers.

    • Sample native processes with CPU Profiler
      • The CPU Profiler now includes a default configuration to record sampled traces of your app’s native threads. You can use this configuration by deploying your app to a device running Android 8.0 (API level 26) or higher and then selecting Sampled (Native) from the CPU profiler’s recording configurations dropdown menu. After that, record and inspect a trace as you normally would.
    • Remember, you can change default settings, such as the sampling interval, by creating a recording configuration. To switch back to tracing your Java threads, select either a Sampled (Java) or Instrumented (Java) configuration.
  • Filter CPU trace and memory allocation results
    • When using Android Studio 3.1 Canary 6 or higher, the CPU Profiler and Memory Profiler include a search feature that allows you to filter results from recording a method trace, memory allocations, or heap dump.
  • Updates to Lint
    • When you run lint from the command line, lint now also analyzes your Kotlin classes.

Download Android Studio 3.1 Beta 1

You can switch the channels on your current Android Studio revision to get this Beta. Better yet, you can also manually download Android Studio 3.1 Beta 1 and have it set up alongside your stable setup.

Download: android-studio-ide-173.4567466-windows.zip

This has been a detailed look at the new Android Studio 3.1 Beta 1. Soon, we will be publishing a full set-up post so stay tuned for that!