Wednesday, March 11, 2020

Android Studio 4.0 Beta 2 available


Android Studio 4.0 Beta 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.

Fixed: Git version control errors in the IDE

Operations requiring authentication in Git version control were broken in the IDE for Android Studio 4.0 Beta 1.
To fix this issue, upgrade to Android Studio 4.0 Beta 2.

Patches not working in 4.0 Beta 2

Patches for Android Studio 4.0 Beta 2 are currently broken. To update to a newer version of Android Studio 4.0, shut down Android Studio, then download and install the latest package.
This issue will be fixed in an upcoming release.

Dependencies metadata

When building your app using Android Gradle plugin 4.0.0-beta02 and higher, the plugin includes metadata that describes the dependencies that are compiled into your app. When uploading your app, the Play Console inspects this metadata to provide you with the following benefits:
  • Get alerts for known issues with SDKs and dependencies your app uses
  • Receive actionable feedback to resolve those issues
The data is compressed, encrypted by a Google Play signing key, and stored in the signing block of your release app. However, you can inspect the metadata yourself in the local intermediate build files in the following directory: <project>/<module>/build/outputs/sdk-dependencies/release/sdkDependency.txt.

To learn more, see Dependencies metadata.

General fixes

This update also includes fixes for the following public issues:
Android Gradle Plugin
  • Issue #148974861: [Android Library Publishing] Do not publish VariantAttr attribute for *all* component
  • Issue #149193056: Suppress warning about :buildSrc:configurePrecompiledScriptDependenciesResolver being non-incremental
Apply Changes
  • Issue #144236330: "Apply Changes and Restart Activity" and "Rerun Tests" commands use the same keyboard shortcut
Code Editor
Data Binding
Feedback
  • Issue #148656284: AS 4.0a9: "help -> Submit feedback" pre-populated with un-escaped garbled text
IntelliJ
Lint
Lint Inspections
Prefab Integration
  • Issue #149575364: IllegalStateException from Run button in AS when using native dependencies with android.enableParallelJsonGen=true
Shrinker (R8)


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.