Thursday, February 27, 2020

Android Studio 4.1 Canary 1 available


Android Studio 4.1 Canary 1 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.

Assertions in debug builds

Assertions in your Java code are now enabled when deploying the debug version of your app. See the release notes for more information.

Jetpack Compose

Jetpack Compose is now available in the 4.1 channel; it has been removed from the 4.0 channel. See the release notes for more information.

Git version control errors in the IDE

Operations requiring authentication in Git version control are broken in the IDE for Android Studio 4.1 Canary 1 and will be fixed in an upcoming release.

As a workaround, use Git from the command line.

General fixes

This update includes fixes for the following public issues:

Android Android Gradle Plugin Android Studio
  • Issue #71894463: Radial Gradient SVG from Sketch is not imported correctly by the Vector Asset Tool
App Model
  • Issue #147432884: Invert compression and adding salt to make the footprint of sdk dependency data smaller in APKs
Build Build Output
  • Issue #146593375: Processing the events in the build output windows delays the app install
Build Variants C++ Debugger
  • Issue #145707569: LLDB Startup Commands Can't work with `Attach Debugger to Android Process` when debug
C++ Editor C++ Import/Sync Code Editor
  • Issue #149041225: Freeze in AndroidProcessMonitorManager.getMonitor
  • Issue #146115250: Data Binding functionality stops working (Logs show crash in LayoutBindingShortNamesCache$3.compute)
  • Issue #147802433: Proguard unresolved symbols shown in gray instead of red
ConstraintLayout
  • Issue #140882056: ConstraintLayout's Flow class located in different package in androidx and android.support
Core IDE Data Binding
  • Issue #147609508: Data Binding not resolving the binding class for layouts in different sourceSet
  • Issue #146538006: IDE sometimes fails to resolve "include" layouts
Deployment
  • Issue #139859267: `Default Activity not found` error, "Multiple entries with same key" in ActivityAttributesSnapshot
Design Tools Gradle C++
  • Issue #134374003: Android Gradle Plugin: “Expected output file at … for target … but there was none” when CMakeLists defines object libraries
Import/Sync
  • Issue #145235353: Require sync after change comment in gradle file is pointless
IntelliJ Java 11 Blockers Layout Editor Layout Inspector
  • Issue #148890011: LayoutInspector violates WebView Strict Mode and spams popups
Lint NDK New Project Wizard Preference
  • Issue #137173772: SettingsActivity (androidx) EditTextPreference crashes on rotation from landscape to portrait
  • Issue #146166988: Bug: "Target fragment must implement TargetFragment interface" after rotating screen twice with EditTextPreferenceDialog open
Project Structure
  • Issue #126937269: [New PSD] buildType/productVlavor etc. names are not properly validated when creating a new item
  • Issue #147798442: [PSD] Extra entries are added for new variable
Project System
  • Issue #147246554: "Not a gradle Project" When a build file is defined in the settings.gradle.kts with rootProject.buildFileName
  • Issue #128673540: kotlin DSL gradle and AndroidX refactoring
Project View
  • Issue #111527585: Android project view refreshes over and over again
  • Issue #121345405: The Android Studio "Android Explorer" does not show test directories for combined flavors.
Resources
  • Issue #148173587: [Regression] Importing SVG is broken ("fillType was already specified")
SDK Console Templates
  • Issue #145977222: Remove implementation fileTree(dir: 'libs', include: ['*.jar']) from new project template.
View Binding
  • Issue #147927480: Class com.example.viewbinding.SimpleInTestModuleTest fails
  • Issue #147684086: Generated Binding classes appear to have a public no-args constructor

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.