Friday, March 4, 2022

Android Studio Dolphin Canary 5 now available

Android Studio - Dolphin | 2021.3.1 Canary 5 is now available in the Canary and Dev channels.

If you already have an Android Studio build on the Canary or Dev channel, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on macOS). Otherwise, you can download it here.

For information on new features and changes in all preview builds of Android Studio Dolphin, see the Android Studio Preview release notes. For details of bugs fixed in each preview release, see previous entries on this blog.

We greatly appreciate your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. Note that you can also vote for an existing issue to indicate that it also affects you. 

General fixes

The bug fixes included in this update can be found here. For details of bugs fixed in each preview release, see previous entries on this blog.

New features

Support for debugging Kotlin coroutines

Android Studio Dolphin now adds support for debugging Kotlin coroutines in your Android projects. The supported functionality is similar to what is currently available in IntelliJ IDEA 2021.3 and higher, but is now also available in Android Studio.

Before you get started, ensure that your app project uses kotlinx-coroutine-core version 1.6.0 or higher. Then, debug your app as you normally would on a device running API level 29 or higher. 

When setting a breakpoint in a suspend function, make sure the breakpoint sets Suspend to All
When your app hits the breakpoint, you can see coroutines and their stages grouped by dispatcher in the Coroutines tab. You can use the Variables tab as you normally would, so that you can investigate values of local variables and fields available in a coroutine at each breakpoint.

Known issues

Firebase option missing in Tools menu

Starting with Android Studio Dolphin Canary 5, the missing Firebase option in the Tools menu can be found by doing a double-shift to search everywhere or ctrl-shift-a to find action and then searching for "firebase".