Android Studio 4.0 Beta 3 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.
General fixes
This update also includes fixes for the following public issues:Android Gradle Plugin
- Issue #151040815: BuildTypeAttr.ATTRIBUTE and VariantAttr.ATTRIBUTE in Android Gradle plugin 4.0.0-beta01 are not ABI-compatible with 3.6 of the plugin
- Issue #146520838: JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
- Issue #142608498: AS forgets selected build variant
- Issue #144300600: error: cannot generate view binders java.lang.IllegalArgumentException: Parameter specified as non-null is null: method android.databinding.tool.reflection.RecursiveResolutionStack.visit, parameter referenceObject
- Issue #149045341: Very long sync times when consuming a custom configuration
- Issue #150848406: GradleVersions pattern matcher problem
- Issue #150530989: Lint crashes on kotlin elvis in 4.1.0-alpha01
- Issue #150506104: Lint failure when upgrading to 3.6.x
- Issue #148172219: [AGP 4.0.0-alpha09] False error: X must extend android.view.View
- Issue #140881211: Android Studio 3.6 canary 10 incorrectly marks butterknife as annotation processor.
- Issue #126439418: @Suppress tag prevents Lint detectors from resolving reference
- Issue #150292219: Lint runs twice as slow on AGP 4 Beta 1 + False Positive
- Issue #125138962: Bug: removed-unused-resources can show items that are actually used
- Issue #149554602: The R8 1.6.X 2.0.X compile project crashed,it looks like a bug form CodeRewriter.java(EnumValueOptimizer.java)
- Issue #150688800: "NullPointerException during IR Conversion" with gradle plugin 3.6.1
- Issue #149729626: R8 full mode removes constructors kept by Proguard
- Issue #150274427: RET should be handled by the ASM jsr inliner
- Issue #144437165: ServiceLoaderRewriter not working for multiple services.
- Issue #149946708: R8 fails during transformClassAndResourcesWithR8 on UI test apk
- Issue #149890887: NPE in MemberRebindingAnalysis.firstLibraryClassForInterfaceTarget
- Issue #150189783: Since AGP 3.6.0, R8 fullMode converts Kotlin data class into AbstractClass and produces error with Gson
- Issue #147972078: 4.0.0-alpha08 - java.lang.RuntimeException: Cannot create an instance of class ViewModel
- Issue #144788300: "Test framework quit unexpectedly" after running Espresso tests in Studio 3.6
- Issue #150405777: Add modification tracker for view binding enabled / disabled
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.