Android Studio 4.1 RC 2 is now available in the Beta channel.
If you have Android Studio set up to receive updates on the Beta 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.
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.
General Fixes
This update includes fixes for the following issues:
Android Gradle Plugin
- Issue #161826152: Gradle ran out of memory with 4GB max heap
- Issue #159434426: applicationIdSuffix cannot be empty
- Issue #160473003: Set Custom application id per variant bug
- Issue #150445391: Android Studio crash on linux and hidpi screen (3840x2160).
- Issue #160905482: Desugaring broken for subclasses of ConcurrentHashMap
- Issue #160909126: coreLibraryDesugaringEnabled seems to break ConcurrentHashMap when using Gson and reflection
- Issue #161963743: IDE fails to stop Gradle daemon when using 6.6-rc-2
- Issue #158128960: AGP 4.0 false positive Instantiatable Lint check if Application extends java class
- Issue #162259273: Wrong Activity is use for launch when there is an alias
- Issue #161403944: With AGP 4.1.0.beta01+, minifyEnabled = true leads to runtime crash due to java.lang.VerifyError
- Issue #161154276: [2.1.52] Undefined value encountered during compilation. This is typically caused by invalid dex input that uses a register that is not defined on all control-flow paths leading to the use
- Issue #160942326: Runtime errors when using R8 2.0+
- Issue #160901582: CompilationError during R8 phase when optimizations enabled
- Issue #161230424: App crashes after Upgrading to AS 4
- Issue #162921738: Conditional keep rule not triggered by other keep rule
- Issue #159194018: Problem with ClassInitializationAnalysis for kotlin coroutines android library
- Issue #162568140: NullPointer during IR Conversion in R8
- Issue #161735546: gradle:4.1.0-beta04 Null pointer exception when generating signed build
- Issue #152476580: Gradle 4.0.0 and above libcore.reflect.AnnotationAccess.toAnnotationInstance exception
Additionally the issues below were addressed in this release but may not be necessarily fixed:
Import/Sync- Issue #160909456: androidx compose project gradle sync breaks when upgrading to AS 4.2 Canary 4
- Issue #161925082: The Instance View window is too small and cannot be made wider
- Issue #162506565: Motion Editor does not support the Release Candidates
- Issue #162906014: Unable to create new project
- Issue #161727616: [R8 2.1.52] java.lang.NoSuchFieldError: No field Companion of type ...