Tuesday, July 21, 2020

Android Studio 4.2 Canary 5 available


Android Studio 4.2 Canary 5 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.
For information on new features and changes in all preview builds of Android Studio 4.2, 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

Android Gradle Plugin
  • Issue #160155450: BuildConfig not correctly honoring contract around quotations in String[]
  • Issue #158747359: ./gradlew connectedCheck fails with "com.android.ddmlib.InstallException: Unknown failure: Error: Unknown option: -g"
  • Issue #160330055: GradleAnalyticsEnvironment leaks ProviderFactory
  • Issue #157781501: Android gradle plugin fails to generate test coverage report with Gradle 6.4.1
  • Issue #159871229: Debug build causes duplicate definitions for desugared library classes
  • Issue #146163513: Configuration caching - connectedAndroidTest task state cannot be serialized
  • Issue #112699321: Support APK Signature Scheme v3
  • Issue #159685888: Merge java resource error message is not very useful
  • Issue #159434426: applicationIdSuffix cannot be empty
C++ Build
  • Issue #159411906: externalNativeBuildClean runs preBuild also when using AGP 4.0.0
Database Inspector Import/Sync
  • Issue #156772381: Bug: IDE tells me to update a file that doesn't exist, and in illogical place, of gradle version
Jetpack (androidx) Lint New Code/Templates
  • Issue #159364425: Can't create activity or fragment after updating Android Studio to 4.0
  • Issue #159832672: Bug: creating a new project with the wizard, it doesn't use the label for the toolbar title
Running Tests View Binding
  • Issue #159948398: View Binding classes are not resolved in Studio 4.0+ when two modules share the same layout name+app ID