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
To learn more, see Dependencies metadata.
Android Gradle Plugin
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.
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
- Issue #144236330: "Apply Changes and Restart Activity" and "Rerun Tests" commands use the same keyboard shortcut
- Issue #149041225: Freeze in AndroidProcessMonitorManager.getMonitor
- Issue #149045351: Does view binding work between modules?
- Issue #148656284: AS 4.0a9: "help -> Submit feedback" pre-populated with un-escaped garbled text
- Issue #124680708: Git Push Crashes from IDE
- Issue #149490356: Lint CLI driver crashes on Windows \r\n separators
- Issue #148051144: Lint on AGP 4.0.0-alpha09 fails with InvocationTargetException
- Issue #149342692: Navigation resource is not being found by Lint
- Issue #149575364: IllegalStateException from Run button in AS when using native dependencies with android.enableParallelJsonGen=true
- Issue #149781762: Sealed class fields are null
- Issue #147865209: Performance regression between R8 with AGP 3.4.1 and R8 1.6.57
- Issue #148929520: IllegalArgumentException: Multiple entries with same key: Method $$ServiceLoaderMethods.$load0
- Issue #149522381: StackOverflowError in release build with R8 in full mode
- Issue #149468959: Enum field mutation omitted in calling code
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.