Tuesday, May 26, 2020

Android Studio 4.1 Canary 10 available


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

Updated themes and styles in new project templates

Android Studio templates in the Create New Project dialog now use Material Design Components and updated themes and styles guidance by default.

To learn more, see the release notes.

Prevent new and existing databases from closing

To make it easier to inspect databases in the Database Inspector, you can prevent new and existing connections to your databases from closing by clicking Keep database connections open.

To learn more, see the release notes.

General Fixes

Android Gradle Plugin
  • Issue #154388196: Gradle configuration fails on project with several modules when AGP is applied using plugin management
  • Issue #155318103: Post-tasks variant API: Adding manifest placeholders is broken and breaks the build from AGP 3.x to AGP 4.1.0-alpha08
  • Issue #145944388: Compile error because R.java limit (error: too many constants)
C++ Debugger
  • Issue #120865679: App crash (segfault) when debugging JNI functions with local jstring reference
Code Analysis
  • Issue #155772516: Resource bundle redefinition for plugin 'org.jetbrains.android'. Old value: messages.AndroidBundle
Database Inspector
  • Issue #156131130: The empty database warning does not have the right colors in Dark mode
  • Issue #156134721: Inspector annotator is accessing databases from wrong thread
Databinding Emulator Espresso Recorder Import/Sync
  • Issue #152889824: Support Variant switching without running Gradle (like switching build variants)
  • Issue #150397855: local.properties file generated in buildSrc folder
Layout Editor
  • Issue #139716861: Studio freezes when clicking a Button view in the design surface
New Code/Templates Project Structure
  • Issue #149773516: Migrating Android Studio 3.5 Project to 3.6 rc03 causes Unsupported modules detected error
Project View
  • Issue #150933937: Renaming a dynamic feature module in Android Studio doesn't update the base build.gradle
Resources
  • Issue #142004503: "Remove Unused Resources" for view binding missed method reference syntax (e.g. `LayoutBinding::inflate`)
Search What's New Assistant
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.