Wednesday, December 4, 2019

Android Studio 4.0 Canary 5 available


Android Studio 4.0 Canary 5 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.

New Android Gradle plugin options for build features



Android Gradle plugin 4.0.0-alpha05 introduces a new way to control which build features you want to enable and disable, such as View Binding, Data Binding, and Jetpack Compose. When new features are added, they will be disabled, by default. You can then use the buildFeatures block to enable only the features you want, and it helps you optimize the build performance for your project.

To learn more, see the release notes.

Known Issues

Patches Not Available for Canary 5

No patches for Android Studio 4.0 Canary 5 are available for previously released Android Studio 4.0 Canary versions. To install Android Studio 4.0 Canary 5, please download it from the Android Studio downloads page.

Layout Inspector in Canary 5

In Android Studio 4.0 Canary 5, the Layout Inspector does not function correctly.

General fixes

This update includes fixes for the following public issues:
App Development
  • Issue #37123156: aapt_rules.txt should specific explicitly used constructor instead of argument wildcard.
Build
  • Issue #139782877: Native builds compile all architectures now instead of just the one needed for the target device
Core IDE
  • Issue #144668812: Importing SVG file with a style combination creates incorrect vector drawable
Data Binding
  • Issue #144788290: Changes to data binding layouts are not processed by the IDE
  • Issue #141936603: Auto-complete for data binding includes classes not known/visible to the current module
  • Issue #144527914: Unresolved reference for inner class when using an <import alias="..."/>
  • Issue #123427765: Binding expression not supported VectorDrawableCompat.
  • Issue #144246528: DataBinding is occurs NullPointerException if there are two LiveData flags when only one of them has initial value
  • Issue #142405164: DataBinding variable cannot use java.lang.Void in AGP 3.6
Deployment
  • Issue #144109935: Android Studio 4 Canary does noting on Run->Run
  • Issue #144443063: Run button is always disabled after running configuration with another configuration
Design Tools Gradle Jetifier Layout Editor
  • Issue #124231532: Property Panel stays empty after adding a recycler view for the first time
Navigation Editor
  • Issue #142491178: Visual bug while using the design view of the navigation graph.
New Project Wizard
  • Issue #144443773: Creating a project with an apostrophe in the human readable name makes compilation fail
Project System
  • Issue #143291278: Creating a new Module edits settings.gradle even if settings.gradle.kts is present
Resource Manager
  • Issue #144443057: Select resource (Pick a resource dialog) displays hidden files too (named with prefix .)
Run Debug View Binding
  • Issue #143160165: View Binding will cause the code to expose / leak the IDs or names of the Views after doing ProGurad or R8
  • Issue #143807078: dataBindingGenBaseClassesDebug task fails with "part 'layer-list' is keyword"

For information on new features and changes in all preview builds of Android Studio 4.0, 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.