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
- Issue #147105605: Move codegen to AS Gradle codebase
- Issue #148944828: [MLKit Plugin] Throw IOException from light class's constructor method to match the real impl
- Issue #147595970: Create mlkit_common module in tools/base
- Issue #149663643: [AS Integration] Use single hierarchy package suffix for auto generated classes
- Issue #148283520: Set up mlkit-common module with library in maven
- Issue #147890886: Avoid scanning all modules in MlkitClassFinder
- Issue #147680613: Add light class support for codegen in AS codebase
- Issue #148621263: Add more data in mlkit-common
- Issue #149254807: [AS Integration] Inner classes of generated class are not discoverable independently by auto completion
- Issue #149718660: [AS Integration] Add navigation support for inner classes
- Issue #149252211: [AS Integration] Render the summary and usage of generated class in model viewer
- Issue #149791876: Rename Param and ModelData in mlkit-common
- Issue #144867508: Create ML Kit Module in Android Studio
- Issue #146015231: Create MLKIT Task in AGP for model classes auto-generation
- Issue #147768068: AGP 3.6 RC 1 produces non constants R fields when using the android name space.
- Issue #148005697: [AGP 4.0.0-alpha08] DataBindingInfo is being defined in the same package across different modules
- Issue #147486992: Use artifact transforms for external libraries in dexing task
- Issue #115334911: Change how we model test - tested app dependency
- Issue #148164947: AndroidLibrary.getLintJar is not valid for sub-project
- Issue #144513656: Lint's Gradle task hangs after update to AGP 3.6.0-beta04
- Issue #146869072: Task failed on mergeExtDex
- Issue #148442683: Build APK outputs.json metadata incorrectly setting value of versionName
- Issue #141535821: BasePlugin.checkModulesForErrors is quadratic in number of projects
- Issue #146922959: GenerateTestConfig does not consider build directory name as task input property
- Issue #135471813: Gradle PNG generation doesn't handle qualifiers
- Issue #116859397: Ensure feature abiFilters are the same as the base module's
- Issue #146907851: Update guava from 27.1-jre to 28.1-jre
- Issue #147289282: The option setting 'android.enableR8=true' is deprecated.null
- Issue #148443410: Assertion fails in DependencyResourcesComputer.compute
- Issue #71894463: Radial Gradient SVG from Sketch is not imported correctly by the Vector Asset Tool
- Issue #147432884: Invert compression and adding salt to make the footprint of sdk dependency data smaller in APKs
- Issue #147448576: AGP 3.6 RC 1: Unsupported gradient type: "sweep"
- Issue #146593375: Processing the events in the build output windows delays the app install
- Issue #142608498: AS forgets selected build variant
- Issue #145707569: LLDB Startup Commands Can't work with `Attach Debugger to Android Process` when debug
- Issue #144938511: Android Studio doesn't support CMake's OBJECT library
- Issue #148805330: Syncing C++ projects leak memory in AGP 3.6rc02
- 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
- Issue #140882056: ConstraintLayout's Flow class located in different package in androidx and android.support
- Issue #129362597: Gradle attempt at parsing a redirect notice from Maven Repository
- Issue #143693655: Manifest merging runs all the time
- Issue #147609508: Data Binding not resolving the binding class for layouts in different sourceSet
- Issue #146538006: IDE sometimes fails to resolve "include" layouts
- Issue #139859267: `Default Activity not found` error, "Multiple entries with same key" in ActivityAttributesSnapshot
- Issue #147805557: Improve packing algorithm in multi preview window
- Issue #134374003: Android Gradle Plugin: “Expected output file at … for target … but there was none” when CMakeLists defines object libraries
- Issue #145235353: Require sync after change comment in gradle file is pointless
- Issue #124680708: Git Push Crashes from IDE
- Issue #127544816: Potential blocker for Java 11 rollout: Android Lint
- Issue #143600084: Views cannot be dragged to Flow element in component tree
- Issue #37117915: Help button for Layout Editor
- Issue #148890011: LayoutInspector violates WebView Strict Mode and spams popups
- Issue #149490356: Lint CLI driver crashes on Windows \r\n separators
- Issue #148051144: Lint on AGP 4.0.0-alpha09 fails with InvocationTargetException
- Issue #64415817: NPE on method reference
- Issue #139490306: Lint does not flag NewApi violations in androidTest sources
- Issue #113198298: UnusedResources should handle checking dynamic feature modules
- Issue #142590626: Renderscript not compiling after updating to macOS Catalina
- Issue #148930092: Modules without .iml files may cause "empty android project view"
- Issue #147701786: Strings not escaped for app name
- 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
- 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
- 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
- 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.
- Issue #148173587: [Regression] Importing SVG is broken ("fillType was already specified")
- Issue #148527133: Upgrade protobuf version to 3.10.0 in AGP
- Issue #145977222: Remove implementation fileTree(dir: 'libs', include: ['*.jar']) from new project template.
- 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.