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 $
Build Variants
Databinding
- 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
Import/Sync
Lint
Lint Inspections
- Issue #125138962: Bug: removed-unused-resources can show items that are actually used
Shrinker (R8)
- 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
Testing
- Issue #144788300: "Test framework quit unexpectedly" after running Espresso tests in Studio 3.6
View Binding
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.