Thursday, June 25, 2020

Android Studio 4.1 Beta 2 available


Android Studio 4.1 Beta 2 is now available in the Beta channel.

If you have Android Studio set up to receive updates on the Beta 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.

Standalone profilers now available

It's now possible to access the Android Studio Profilers in a separate window from the primary Android Studio window. For more information, see the release notes.


General fixes

This update also includes fixes for the following public issues:
Android Gradle Plugin
  • Issue #158468794: AGP 4.1 alpha 9 & 10 can't run task :tasks on root module. DefaultTaskContainer#register(String, Class, Action) on task set cannot be executed in the current context.
  • Issue #140747218: Improve error messages for exceptions thrown from Jetifier
  • Issue #154742527: Stop relying on build listeners to clean up state
Build Analyzer Build Output
  • Issue #147776458: Rewrite compiler errors about incorrect Java level and provide quick fixes
Database Inspector Dexer (D8)
  • Issue #157806261: One or more instruction is preventing default interface method from being desugared: java.util.function.Consumer it.unimi.dsi.fastutil.chars.CharConsumer.andThen(java.util.function.Consumer)
  • Issue #158815562: Desugaring: static methods don't work for subclasses
Emulator Gradle
  • Issue #156824496: AGP no longer supports float and various other types of build config fields
Gradle Files Editor
  • Issue #157287524: Bug: IDE suggest to update gradle version for a new project, and then fails to update it well when applied
Import/Sync Layout Inspector Lint
  • Issue #140699627: Lint fail when using StringRes as field of an enum used as SafeArgs argument
  • Issue #159169803: RequiredSize check triggers on AndroidManifest.xml files in directories named "layout"
Navigation Editor
  • Issue #156772383: Multiple vmoptions files: Illegal char <:> while parsing jb.vmOptionsFile
Profilers
  • Issue #143467035: Build fails with advanced profiling enabled + Gson 2.8.6 dependency
Resources
  • Issue #158212024: Classes generated by safeargs plugin are not seen by indexer
Shrinker (R8)
  • Issue #158018192: R8 2.0.74 produces invalid dex file when build "release" mode
  • Issue #157966650: R8 2.0.74 raise NullPointerException with -dontobfuscate option.
  • Issue #158454684: Support for multiple class specification annotations
  • Issue #157926129: minifyReleaseWithR8 throws java.lang.StackOverflowError after updating Gradle Plugin to 4.0.0
Upgrade Assistant
  • Issue #120273289: Don't recommend updating android gradle plugin to alpha version when my android studio version is a beta (and likewise for stable->beta)
WorkManager

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.