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
- Issue #157673275: ProcessDataBinding is not working incrementally
- Issue #147776458: Rewrite compiler errors about incorrect Java level and provide quick fixes
- Issue #157461455: Database inspector shows duplicated "Database" groups
- 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
- Issue #158874142: Studio clipboard does not pick up clipboard selection from the emulator
- Issue #157181475: View > Emulator doesn't toggle
- Issue #156865227: Zooming in on the emulator causes visual flicker
- Issue #156824496: AGP no longer supports float and various other types of build config fields
- Issue #157287524: Bug: IDE suggest to update gradle version for a new project, and then fails to update it well when applied
- Issue #156992679: Quickfix for java 8 desugaring should not update min-sdk
- Issue #156112443: Invalid Gradle JDK configuration found
- Issue #158018185: When using "make project", AS reports build failures when using Kotlin DSL in buildSrc
- Issue #156787539: layout inspector doesn't detect running device
- 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"
- Issue #156772383: Multiple vmoptions files: Illegal char <:> while parsing jb.vmOptionsFile
- Issue #143467035: Build fails with advanced profiling enabled + Gson 2.8.6 dependency
- Issue #158212024: Classes generated by safeargs plugin are not seen by indexer
- 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
- 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)
- Issue #147481889: Lint False Positive for EnqueueWork
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.