Tuesday, October 6, 2020

Android Studio 4.0.2 available

Android Studio 4.0.2 is now available in the Stable channel.

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

For information on new features and changes in all releases of Android Studio, see the Android Studio release notes.

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.

General fixes

This update includes fixes for the following public issues:

Dexer (D8)
  • Issue #158502561: Invalid Maven POM file for the desugar_jdk_libs_configuration artifact
  • Issue #160905482: Desugaring broken for subclasses of ConcurrentHashMap
  • Issue #160909126: coreLibraryDesugaringEnabled seems to break ConcurrentHashMap when using Gson and reflection
  • Issue #159275214: [library desugar] Desugar java.util.TimeZone.getTimeZone(ZoneId zoneId)
Layout Editor
  • Issue #162809072: When I change a xml id attribute at Design mode, studio popup and ask changing another id. I click "No(local)" but studio find and change same name id in another files.
Lint
  • Issue #158128960: AGP 4.0 false positive Instantiatable Lint check if Application extends java class
  • Issue #155088391: Can no longer specify layout_height and layout_width in a style
Motion Editor Shrinker (R8)