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 5No 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 5In 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.
- Issue #139782877: Native builds compile all architectures now instead of just the one needed for the target device
- Issue #144668812: Importing SVG file with a style combination creates incorrect vector drawable
- 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
- Issue #144109935: Android Studio 4 Canary does noting on Run->Run
- Issue #144443063: Run button is always disabled after running configuration with another configuration
- Issue #144057801: Bug: importing SVG files create incorrect VectorDrawable
- Issue #143375935: AS 4.0 Canary 1 - INSTALL_FAILED_NOT_APK
- Issue #144553651: Incorrect R8 version parsing for targeted rules
- Issue #144916156: W/o external transforms present we should use artifact transforms
- Issue #145125886: Integrate jetifier beta08 to AGP
- Issue #124231532: Property Panel stays empty after adding a recycler view for the first time
- Issue #142491178: Visual bug while using the design view of the navigation graph.
- Issue #144443773: Creating a project with an apostrophe in the human readable name makes compilation fail
- Issue #143291278: Creating a new Module edits settings.gradle even if settings.gradle.kts is present
- Issue #144443057: Select resource (Pick a resource dialog) displays hidden files too (named with prefix .)
- Issue #143229099: Activity can't be found by run configuration
- 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.