[go: up one dir, main page]

Release updates archive

Android Studio 3.6.2 is now available in the Stable channel.

If you already have an Android Studio build on the Stable channel, you can get the update by clicking Help > Check for Update (Android Studio > Check for Updates on macOS). Otherwise, you can download here.

This minor release includes the following changes:
Android Gradle Plugin Build Variants Data Binding
  • Issue #147609508: Data Binding not resolving the binding class for layouts in different sourceSet
Design Tools
  • Issue #128599052: IDE becomes sluggish while trying to use eye dropper tool from color picker dialog
Import/Sync IntelliJ Lint Shrinker (R8)
  • Issue #147972078: 4.0.0-alpha08 - java.lang.RuntimeException: Cannot create an instance of class ViewModel
  • Issue #144437165: ServiceLoaderRewriter not working for multiple services.
  • Issue #146534384: `NoSuchMethodException: parameter type is null` moshi with R8
  • Issue #149890887: NPE in MemberRebindingAnalysis.firstLibraryClassForInterfaceTarget
  • Issue #148929520: IllegalArgumentException: Multiple entries with same key: Method $$ServiceLoaderMethods.$load0
  • Issue #150274427: RET should be handled by the ASM jsr inliner
  • Issue #149729626: R8 full mode removes constructors kept by Proguard
  • 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 #150325706: R8 failed after upgrading to AGP v3.6.0
  • Issue #150330356: NullPointerException during IR Conversion with android-gradle-plugin 3.6.0
Testing
  • Issue #148341176: Android Studio using out of date sources to run tests
  • Issue #144788300: "Test framework quit unexpectedly" after running Espresso tests in Studio 3.6
View Binding
  • Issue #150405777: Add modification tracker for view binding enabled / disabled

For information on new features and changes in all releases of Android Studio, see the Android Studio release notes.

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.

Emulator 30.0.6 is now available in the Canary and Dev channels. Changes:
  • Upgraded protobuf verison to 3.11.4
  • Added experimental car data replay feature for when running Android Auto Embedded system images to the car data page in the extended controls. The feature is flagged off and is called CarVhalReplay. To enable:
    • Launch the emulator from command line with -feature CarVhalReplay
    • Or, add "CarVhalReplay = on" to ~/.android/advancedFeatures.ini
    • More details
  • Fixed kernel version parsing issue when running aarch64 guest kernels.
  • Vulkan
    • Worked around issue that occurs on Windows NVIDIA GPUs when creating/destroying VkPipelineLayouts in multiple threads.
  • Improved support (fixes, performance improvements) for host-side video codecs. Requires a future Android R system image.

Windows performance

We've noticed that the emulator has been running much slower on some Windows 10 systems than others, while some versions of Windows 8.x and below seem unaffected. The issue seems to be due to a recently introduced mitigation for the Foreshadow (L1TF) security vulnerability: https://support.microsoft.com/en-us/help/4073119/protect-against-speculative-execution-side-channel-vulnerabilities-in

Disabling the L1TF mitigation via

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f


(and then rebooting) will restore performance to its previous state. However, we don't recommend this if you are using the emulator to run arbitrary untrusted code.

Emulator 30.0.5 is now available in all channels. This is primarily a bugfix release with no new features except to be compatible with future Android R Developer Previews. Changes relative to previous stable version, 30.0.0:
  • When using a host webcam on Linux (webcam0 and others), more webcam formats are supported.
  • When running with Android 11 system images, a new protocol is used for the camera that uses host coherent shared memory and async processing.
  • For the Linux emulator, if the user does not have permissions to use /dev/kvm, we now print more informative error messages.
  • Emulator can now be launched from an sshfs mount point.
  • Added support for host-side / hardware H.264 and VPx decode via combinations of ffmpeg, VideoToolbox on macOS, and CUDA if a NVIDIA GPU is used on the host. This requires a future Android 11 system image release.
  • Sensors are now supported through the gRPC channel.
  • Fixed issue in Hypervisor.framework backend where x86 AND/OR instructions were not properly emulated when in long mode.
  • ipv6 port forwarding with SLIRP is now supported as part of the QEMU command line options and QEMU monitor:
    • ipv6_hostfwd_add [hub_id name]|[netdev_id] [tcp|udp]:[hostaddr6]:hostport-[guestaddr6]:guestport
    • ipv6_hostfwd_remove [hub_id name]|[netdev_id] [tcp|udp]:[hostaddr6]:hostport
  • Fixed incorrect timestamps in some metrics sending.
  • WebRTC service now only activates frame sending when needed.
  • Voice assistant button for Car AVDs is now hidden.
  • Reduced download size due to optimizing ffmpeg build.
  • Fixed crash when closing the emulator with editable slider widgets active in the extended UI.
  • When running the emulator in -no-window mode and screenshots are repeatedly taken, the screenshots should now better follow the state of the device.
  • Added experimental support in the virtual sensors page for displaying the virtual framebuffer in various states of folding, available via starting the emulator with the environment variable ANDROID_EMU_ABSTRACT_DEVICE_VIEW=1. The "Fold" slider controls folding of the display at various hinge angles (Only vertical fold is supported currently):



Android Studio 4.1 Canary 4 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.


Native Memory Profiler

The Android Studio Memory Profiler now includes a Native Memory Profiler for apps deployed to physical devices running Android 10 or later. To learn more, see the release notes.

Use TensorFlow Lite models in Android Studio

ML Model Binding makes it easy for you to directly import .tflite model files and use them in your projects. Android Studio generates easy-to-use classes so you can run your model with less code and better type safety. For more information, see the release notes.

General fixes

This update includes fixes for the following public issues:

C++ Build
  • Issue #143411149: Syncing after any change to any Gradle file forces full rebuild of native code
Lint View Binding For information on new features and changes in all preview builds of Android Studio 4.1, 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.

Emulator 30.0.5 is now available in the Canary and Dev channels. Changes:

  • Added experimental support in the virtual sensors page for displaying the virtual framebuffer in various states of folding, available via starting the emulator with the environment variable ANDROID_EMU_ABSTRACT_DEVICE_VIEW=1. The "Fold" slider controls folding of the display at various hinge angles (Only vertical fold is supported currently):


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 $
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
  • 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.


Android Studio 4.1 Canary 3 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.


General fixes

This update includes fixes for the following public issues:

Android Gradle Plugin
  • Issue #150500779: test code is not able to access internal methods from the library it is testing
  • 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 #150438232: Caching seems to be broken for CheckMultiApkLibrariesTask
  • Issue #150817339: MergeJavaResourcesDelegateTest.testMergeResources fails locally
  • Issue #113978810: Bundled proguard-android.txt should not obfuscate descriptor classes for native methods
  • Issue #142890134: AGP 3.6.0-beta01: relocatability problem with syncDebugLibJars
C++ Debugger Data Binding
  • Issue #150989409: False inspection: The expression "..." cannot be inverted, so it cannot be used in a two-way binding
  • 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 Layout Editor
  • Issue #150367191: Re-enable TypeResolverSdkTest.testMaterialViewAttributeTypes
Lint Lint Inspections
  • Issue #125138962: Bug: removed-unused-resources can show items that are actually used
Testing
  • Issue #144788300: "Test framework quit unexpectedly" after running Espresso tests in Studio 3.6
View Binding
  • 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.1, 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.

Emulator 30.0.4 is now available in the Canary and Dev channels. Changes:
  • Reduced download size due to optimizing ffmpeg build.
  • Fixed crash when closing the emulator with editable slider widgets active in the extended UI.
  • When running the emulator in -no-window mode and screenshots are repeatedly taken, the screenshots should now better follow the state of the device.


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.


Android Studio 4.1 Canary 2 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.

Fix for Git version control errors in the IDE

Operations requiring authentication in Git version control were broken in the IDE for Android Studio 4.1 Canary 1. This issue is fixed in Android Studio 4.1 Canary 2.

Patches not working in 4.1 Canary 2

Patches for Android Studio 4.1 Canary 2 are currently broken. To update to a newer version of Android Studio 4.1, shut down Android Studio, then download and install the latest package.

This issue will be fixed in an upcoming release.


General fixes

This update includes fixes for the following public issues:

Android Gradle Plugin
  • Issue #149193056: Suppress warning about :buildSrc:configurePrecompiledScriptDependenciesResolver being non-incremental
  • Issue #149883012: com.android.zipflinger.Zip is too generic of a name
  • Issue #148974861: [Android Library Publishing] Do not publish VariantAttr attribute for *all* component
Apply Changes
  • Issue #144236330: "Apply Changes and Restart Activity" and "Rerun Tests" commands use the same keyboard shortcut
Data Binding IntelliJ Lint Inspections
  • Issue #149753966: "Unguarded field access" inspection does nor work for androidx.annotation.GuardedBy
  • Issue #149342692: Navigation resource is not being found by Lint
Prefab Integration
  • Issue #149575364: IllegalStateException from Run button in AS when using native dependencies with android.enableParallelJsonGen=true
Run Test For information on new features and changes in all preview builds of Android Studio 4.1, 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.

Emulator 30.0.3 is now available in the Canary and Dev channels. Changes:
  • ipv6 port forwarding with SLIRP is now supported as part of the QEMU command line options and QEMU monitor:
    • ipv6_hostfwd_add [hub_id name]|[netdev_id] [tcp|udp]:[hostaddr6]:hostport-[guestaddr6]:guestport
    • ipv6_hostfwd_remove [hub_id name]|[netdev_id] [tcp|udp]:[hostaddr6]:hostport
    • Details
  • Fixed incorrect timestamps in some metrics sending.
  • WebRTC service now only activates frame sending when needed.
  • Voice assistant button for Car AVDs is now hidden.
Note: The macOS build has not been updated yet due to infra issues. We're sorry for the outage and will resume updating it later.