Thursday, May 7, 2020

Android Studio 4.1 Canary 9 available


Android Studio 4.1 Canary 9 is now available in the Canary and Dev channels.

If you have Android Studio set to receive updates on the Canary or Dev channel, you can get the update by choosing Help > Check for Updates (Android Studio > Check for Updates on macOS). Otherwise, you can download it here.

Improvements from IntelliJ IDEA 2020.1

The core Android Studio IDE is based on IntelliJ IDEA. In this release, we have begun incorporating improvements from IntelliJ 2020.1, which we will continue in upcoming canary releases. This is a work in progress, and we welcome any feedback.

IDE configuration directory changes

In this release, the locations for user configuration directories have been changed, consistent with recent updates to IntelliJ IDEA, the IDE on which Android Studio is based.

For more information, please see the release notes.

Missing Kotlin plugin

In Canary 9, you may see the following error when first launching Android Studio after upgrading:

missing essential plugin org.jetbrains.android

This can happen when you import your settings from a previous version of Android Studio. Typically, this means you have a locally installed Kotlin plugin that is not compatible with the new IDE.

For a workaround, please see the release notes.


General Fixes

Build Variants
  • Issue #153476414: Exception thrown when trying to run/configure a release build
Data Binding Database Inspector Debugger Dexer (D8)
  • Issue #154315491: AGP 4.x build fails with exception in L8DexDesugarLibTask configuration
Lint
  • Issue #37133950: new Lint check: calling the same super function more than once
SDK Manager
  • Issue #150942306: Command-line sdkmanager needs better error if root dir can't be found
  • Issue #150943631: sdk manager should be smarter about deriving package path
  • Issue #150944411: Package A shouldn't overwrite package B if B is incorrectly in A's location
  • Issue #150946939: cmdline-tools top-level directory shouldn't be called "tools"
  • Issue #62063562: Add --installed option to sdkmanager --list
  • Issue #137389944: CLI does not respect TERM=dumb
  • Issue #69461360: Usability issue: subcommand and/or quotes around package name for clarity
  • Issue #37130052: sdkmanager --package_file= command isn't whitespace tolerant
  • Issue #152120283: sdkmanager from cmdlinetools fails with unhelpful exception when --sdk_root supplied
  • Issue #37130079: sdkmanager --update doesn't output anything to stdout
Tools Windows
  • Issue #154298380: Android command-line tools seems to be 6200805 broken on Windows
View Binding
For information on new features and changes in all preview builds of Android Studio 4.1, 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 you are also affected by it.