[go: up one dir, main page]

Release updates archive


Android Studio 4.2 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.

v3 and v4 signing now supported

Android Gradle Plugin 4.2 now supports the v3 and v4 APK signing formats. For more information, see the release notes.

General Fixes

Android Gradle Plugin
  • Issue #158545411: Non-shrunk desugared library should only be packaged in the app APK
  • Issue #143862922: Warn when flatDir repository is used in the build
  • Issue #37069473: add hint text for TransformException DuplicateFileException 1.5 plugin
  • Issue #140747218: Improve error messages for exceptions thrown from Jetifier
Build Analyzer C++ Import/Sync
  • Issue #157901344: jniLibs and CMake IMPORTED targets - impossible to import native libraries!!!!!!
Emulator Import/Sync Lint
  • Issue #140699627: Lint fail when using StringRes as field of an enum used as SafeArgs argument
  • Issue #159169803: RequiredSize check triggers on AndroidManifest.xml files in directories named "layout"
New Project Wizard Resources
  • Issue #158212024: Classes generated by safeargs plugin are not seen by indexer

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.

Emulator 30.0.19 is now available in the Canary and Dev channels. 

General fixes available in this release:
  • Emulator should no longer require libshadertranslator.so when running on an EGL/GLES rendering backend such as Swiftshader or ANGLE.
  • Updated pc-bios with fixes to better support large images passed to -initrd.
  • Embedded Emulator: Enable clipboard.


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

Standalone profilers now available

It's now possible to access the Android Studio Profilers in a separate window from the primary Android Studio window. For more information, see the release notes.


General fixes

This update also includes fixes for the following public issues:
Android Gradle Plugin
  • Issue #158468794: AGP 4.1 alpha 9 & 10 can't run task :tasks on root module. DefaultTaskContainer#register(String, Class, Action) on task set cannot be executed in the current context.
  • Issue #140747218: Improve error messages for exceptions thrown from Jetifier
  • Issue #154742527: Stop relying on build listeners to clean up state
Build Analyzer Build Output
  • Issue #147776458: Rewrite compiler errors about incorrect Java level and provide quick fixes
Database Inspector Dexer (D8)
  • Issue #157806261: One or more instruction is preventing default interface method from being desugared: java.util.function.Consumer it.unimi.dsi.fastutil.chars.CharConsumer.andThen(java.util.function.Consumer)
  • Issue #158815562: Desugaring: static methods don't work for subclasses
Emulator Gradle
  • Issue #156824496: AGP no longer supports float and various other types of build config fields
Gradle Files Editor
  • Issue #157287524: Bug: IDE suggest to update gradle version for a new project, and then fails to update it well when applied
Import/Sync Layout Inspector Lint
  • Issue #140699627: Lint fail when using StringRes as field of an enum used as SafeArgs argument
  • Issue #159169803: RequiredSize check triggers on AndroidManifest.xml files in directories named "layout"
Navigation Editor
  • Issue #156772383: Multiple vmoptions files: Illegal char <:> while parsing jb.vmOptionsFile
Profilers
  • Issue #143467035: Build fails with advanced profiling enabled + Gson 2.8.6 dependency
Resources
  • Issue #158212024: Classes generated by safeargs plugin are not seen by indexer
Shrinker (R8)
  • Issue #158018192: R8 2.0.74 produces invalid dex file when build "release" mode
  • Issue #157966650: R8 2.0.74 raise NullPointerException with -dontobfuscate option.
  • Issue #158454684: Support for multiple class specification annotations
  • Issue #157926129: minifyReleaseWithR8 throws java.lang.StackOverflowError after updating Gradle Plugin to 4.0.0
Upgrade Assistant
  • Issue #120273289: Don't recommend updating android gradle plugin to alpha version when my android studio version is a beta (and likewise for stable->beta)
WorkManager

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.18 is now available in the Canary and Dev channels. 

Changes:
  • Embedded Emulator:
    • Fixed issue where uppercase characters were delivered as lower case characters in the emulator.
  • Fixed loading console token from a unicode path in windows.
  • Fixed SO_REUSEPORT error message on linux.
  • Updated ANGLE shader translator to keep up with upstream ANGLE. This fixed an issue around memory corruption when translating and constant-folding OpenGL ES shaders that used non-square matrices. The shader translator is now a separate shared library, libshadertranslator.dll.
  • Added console commands to obtain the emulator AVD directory, discovery file path in the Studio-embedded use case, and path to snapshots:
  • adb emu avd path # Obtains path to AVD directory
  • adb emu avd discoverypath # Obtains path to discovery file
  • adb emu avd snapshotspath # Obtains path to snapshots folder
  • adb emu avd snapshotpath <snapshotName> # Obtains path to the folder that stores the snapshot for the snapshot with name <snapshotName>
  • On macOS, SSE 4.1 and 4.2 are now available from inside the Android guest.


Android Studio 4.2 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.

General Fixes

Android
  • Issue #156673459: [AS Integration] Wording for the warning of AGP version is lower than AS
  • Issue #157696585: Review wordings used by the Ml Model Binding feature
  • Issue #158129876: [AS Integration] Mac only: table header display with ellipsis when column content is too short
Android App Bundles
  • Issue #120517460: Unable to use `shrinkResources` in base module with dynamic features
Android Gradle Plugin
  • Issue #112699321: Support APK Signature Scheme v3 and v4
  • Issue #158468794: AGP 4.1 alpha 9 & 10 can't run task :tasks on root module. DefaultTaskContainer#register(String, Class, Action) on task set cannot be executed in the current context.
Database Inspector
Deployment
Emulator
  • Issue #157181475: View > Emulator doesn't toggle
  • Issue #150051156: Android Studio not AMD processor friendly; tries to automatically install Intel drivers rather than AMD.
Gradle
  • Issue #157463496: Add integration tests for Manifest Class Generation (GenerateManifestJarTask)
Gradle Files Editor
  • Issue #157287524: Bug: IDE suggest to update gradle version for a new project, and then fails to update it well when applied
Import/Sync
  • Issue #158018185: When using "make project", AS reports build failures when using Kotlin DSL in buildSrc
New Code/Templates
  • Issue #157809813: Default module name has two columns (::mylibrary) instead of only one (:mylibrary).
Running Tests
Upgrade Assistant
  • Issue #120273289: Don't recommend updating android gradle plugin to alpha version when my android studio version is a beta (and likewise for stable->beta)

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.

We are happy to announce the release of ConstraintLayout 2.0 beta 7. 

It’s available from the google maven repository:
dependencies {
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta7'
}




or if using the android.support packages:

dependencies {
    implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta7'
}


Documentation is available on https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout and https://developer.android.com/reference/androidx/constraintlayout/motion/widget/MotionLayout

Examples are available on https://github.com/android/views-widgets-samples/tree/master/ConstraintLayoutExamples

Bugfixes

Here is the list of issues fixed in beta 7. Notable fixes are:

  • Nested scroll view issues in MotionLayout
  • Transition listener issues with MotionLayout
  • Memory leak in MotionLayout
  • RecyclerView performances
  • Group visibility
  • Padding issues



[2.0.0-beta4] First tap lost in a scrolling view contained in a MotionLayout146413738
ConstraintLayout should with wrap_content match the heighest child156556215
constraintSet.applyTo(...) when called two or more times in a row, sometimes doesn't work.156556217
ConstraintLayout show different preview since 2.0.0-beta5156582652
[2.0.0-beta6] onTransitionCompleted called multiple times and with an id of -1157003182
ConstraintLayout 2.0 incorrectly applies paddingEnd to RHS of views in RTL157072539
[2.0.0-beta6] MotionLayout + RecyclerView binding all items before recycling all but visible again157075835
Memory leaks when scrolling using MotionLayout157370588
Flinging through ConstaintLayouts (beta-6) in RecyclerView causes loop157498393
match_constraint can sometimes be collapsed incorrectly157498451
MotionLayout leaks nested scrollable view in its mScrollTarget field158494145
onTransitionCompleted is not always called149423772
RTL issue paddingStart/End working like left/right156448748
group visibility doesn't apply correctly in 2.0 beta 6157599997
wrap_content on ConstraintLayout itself does not behave as it should with wrapped TextView111110537
MotionLayout: OnSwipe doesn't work after transitioning to a third state135130730
[MotionLayout 2.0.0-beta2] TransitionListener triggers callbacks incorrectly135627413
Motionlayout crash if count of custom attributes in constraint more than count of constraint sets136362587
MotionLayout throwing ArrayIndexOutOfBoundsException when adding more than three CustomAttribute elements144151823
[MotionLayout] Add a `addTransitionListener` method rather than a setter144714753
Constraint Layout without any children views with height wrap_content takes full parent height146698785
ImageFilterButton NPE GLES20Canvas.clipPath()147871162
[Motion Layout] Jiggling if we fling nested recycler and than move content into opposite direction148483381
[2.0.0-beta4] Motion layout jumps to the end when Recycler view is a touch region150268542
RecyclerView#onScrollStateChanged delayed when child of MotionLayout150881510
CL 2.0.0 Beta 4 rendering issue151317170
Nested ConstraintLayout doesn't show correctly with data binding151648853
ImageFilterView is not showing background when roundPercent > 0 is set on API < 21153243019
beta 6 : wrap content + align baselines156660905
[MotionLayout] strange behavior in auto transition157351958
[2.0.0-beta6] no pass through of `baseline_toBaselineOf` when View is GONE157401856
maxHeight + padding157448494
MotionLayout with RecyclerView has messed up click listeners157501464
MotionLayout ImageFilterView roundPercentage doesn't work after you set to 0.0147094777
addToVerticalChain: Incorrect connections when adding to the top of a chain.149173288

Emulator 30.0.17 is now available in the Canary and Dev channels. Changes:
  • Graphics
    • More debug info has been added to WGL initialization on Windows in order to trace failures.
    • Fixed an issue on Vulkan initialization on some GPU drivers, where certain 1.1 device functions were not found.
  • Media
    • CUDA VPx decode is now properly supported, if CUDA VPx decode is available in hardware.
  • Added better support for detecting remote sessions on Windows.
  • Radio
    • Added a drop down item in Extended Controls > Cellular to toggle simulation of metered connections, such as for 5G use cases. This requires the latest R system image and is a no-op on previous API levels.
      • Added console command to control
        • gsm meter on
        • gsm meter off
  • Fixed GPX/KML route playback to follow timestamps.
  • Fixed bouncing icon on launch for macOS.
  • Fixed a snapshot corruption issue when sending snapshot commands through gRPC, as well as when pressing the snapshot save button in Android Studio embedded emulator.
Foldables: Configurable hinges and 3D preview

Added the ability to configure hinges for foldable devices along with a 3D preview in Extended Controls > Virtual Sensors. Future system images will be sensitive to the hinge configuration and adapt to a particular set of hinges. Up to 3 hinges can be specified.

Example: Create a Pixel 2 XL AVD and add the following lines to ~/.android/avd/avdName.avd/config.ini:

hw.sensor.hinge = yes
hw.sensor.hinge.count = 2
hw.sensor.hinge.ranges = 0-360,0-360
hw.sensor.hinge.defaults = 180,180
hw.sensor.hinge.areas = 0-987-1440-0, 0-1974-1440-0
hw.sensor.posture_list=1, 2, 3, 4
hw.sensor.hinge_angles_posture_definitions=0-30 & 0-30, 30-150 & 30-150, 150-210 & 150-210, 210-360 & 210-360






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

Patches not working in 4.1 Canary 10

Patches for Android Studio 4.1 Canary 10 are currently broken. To update from 4.1 Canary 10 to Android Studio 4.1 Beta, shut down Android Studio, then download and install the latest package.


General fixes

This update also includes fixes for the following public issues:
Android Studio Build Analyzer
  • Issue#156912028: Rebuild project' triggers warning for 'clean' not being incremental
ML Model Binding Run

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.


Android Studio 4.2 Canary 1 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.

Jetpack Compose moved from 4.1 to 4.2

Features supporting Jetpack Compose in Android Studio have been moved from 4.1 to 4.2, including new options for previewing your apps' UI. To learn more, see the release notes.

Improved instrumentation testing moved from 4.1 to 4.2

Improvements to instrumentation tests have been moved from 4.1 to 4.2, allowing instrumentation tests to be run across multiple devices in parallel. For more information about this feature, see the release notes.

General Fixes

Android Studio Benchmark Build Analyzer
  • Issue #156912028: Rebuild project' triggers warning for 'clean' not being incremental
Code Editor Gradle
  • Issue #156824496: AGP no longer supports float and various other types of build config fields
Import/Sync Layout Inspector Memory ML Model Binding New Project Wizard
  • Issue #150203801: When there is a compile error, the build output has a wrong encode
Resources Run Search View Binding
  • Issue #151810671: Data Binding / View Binding: Unescaped "&" in a comment causes fields not to be autocompleted

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.

Emulator 30.0.16 is now available in the Canary and Dev channels. Changes:
  • Disabled "Zoom" button for foldable AVDs
  • Fix rotation buttons disappearing when "Disable device frame" is set
  • ARM64 hosts:
    • Added hostapd and pulseaudio
    • Fixed installation path