[go: nahoru, domu]

Release updates archive

We are happy to announce the release of ConstraintLayout 2.1.0 alpha 1, with many new features in MotionLayout :)

dependencies {
  implementation 'androidx.constraintlayout:constraintlayout:2.1.0-alpha1'
}

2.1.0 alpha 1 Features



Highlights of this release include:
  • Carousel - a motion helper to build custom carousel views
  • Scalability - MotionScenes can be more compact and support includes
  • Rotation support - A collection of features to support rotation (input and output)
  • ViewTransitions - a single view transition to simplify state management
  • Github - ongoing development happens on github: https://github.com/androidx/constraintlayout

More details and documentation can be found at: https://github.com/androidx/constraintlayout/wiki/MotionLayout

Changes

No API was changed from 2.0, existing code should behave the same.

Note: MotionLayout 2.1 features are not yet compatible with MotionEditor in Android Studio.

As of 2.1, we will no longer release com.android.support.constraint versions

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

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.

General fixes

This update also includes fixes for the following public issues:

Android Gradle Plugin
  • Issue #172055303: Disabling android resources in libraries breaks unit tests
  • Issue #171364505: Shrinking library with multidex enabled fails (after 4.0 -> 4.1 update)
  • Issue #170922353: Upgraded from AGP 4.0.2 to 4.1.0 and app crashes with Resources$NotFoundException: Resource ID #0x0
APK Debugging
  • "Project Structure" does not show up for APK Debugging projects
  • Java Debugger crashes for API 29 and above
Apply Changes
  • Issue #161692523: Can't run/debug with Android App run configuration if app is stopped and unchanged from last run/debug
AVD Manager
  • Issue #159878401: "Cold Boot Now" on AVD Manager does not really cold boot emulator
C++
  • Issue #171280381: #$(call import-module,android/cpufeatures) in Android.mk will import all files in disk root
  • Issue #171300770: NullPointerException in CmakeServerExternalNativeJsonGenerator when refreshing linked C++ projects
Code Editor
  • Issue #165821809: Android Studio 4.1 RC 1 continuous UI freezing
  • Find Usage is slow for C++ methods.
Dexer (D8)
  • Issue #167649682: When CoreLibraryDesugaring is enabled and APK is installed manually, the types of variables mapped in Gson are not correct.
Embedded Emulator
  • Touch events are displaced when started emulator in landscape
  • Issue #170657960: Embedded emulator on Windows never closes the emulator process
  • Issue #163608541: First time emulator launch using run does not appear in the android studio window
  • Issue #162564820: "Enter" key doesn't work in Emulator tool window
Gradle Files Editor
  • Issue #165969795: java.lang.NoClassDefFoundError: org/jetbrains/kotlin/resolve/constants/evaluate/ParseUtilsKt
  • Issue #162811644: Changing gradle files in Studio 4.1 displays two sync requests
Indexing
  • Issue #171801044: Android Studio 4.1 with Gradle 6.5 is always indexing!!!
  • Issue #171334504: Updating indices covering full "c:" drive after update and even after reinstall
Profiling
  • Issue #170801047: Unable to create profiler recording configuration
  • Native Memory Profiler not tracking all of memory
  • Issue #171564196: CPU profiler recording fails for pre-O devices: trace file was not parsed
Project System
  • forced upgrades interrupt sync
Resource Manager Run Shrinker (R8)
  • Add retrace to Studio
  • Vertical Class Merging produces invalid dex for chrome
  • Retargeting of invokes to DesugarCollections breaks inlining
  • R8 Compilation failed (java.lang.NullPointerException)
  • Issue #170677722: Full mode - Fragment 1.3.0-beta01 - FORCE inlining on non-inlinable on FragmentManager
  • Issue #169584856: R8 - Compilation failed to complete
  • Issue #169045091: Android Gradle plugin v4.0.0 and Gradle v6.1.1 causes AbstractMethodError on protected methods


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

System Trace: Improved metrics for memory and graphics

In the CPU profiler, the System Trace feature now includes new metrics for analyzing app performance:

  • Events Table: Displays all trace events in the currently selected thread.
  • New tracks and track groups:
    • BufferQueue: In the Display section, this new track shows the buffer count of the app's surface BufferQueue.
    • CPU Frequency: In the CPU cores section, this track shows how hard each core is working.
    • Process Memory (RSS): The new Process Memory (RSS) track group shows the amount of physical memory currently in use by the app.

To learn more, see the release notes.

General Fixes

This update includes fixes for the following issues:

Android Gradle Plugin
  • Issue #150133257: Sanitize flavor names in BuildConfig
  • Issue #170922353: Upgraded from AGP 4.0.2 to 4.1.0 and app crashes with Resources$NotFoundException: Resource ID #0x0
App Inspection
  • Add IDE services for creating files
  • Have a way to stop the app inspector agent on the device
Apply Changes
  • [Properly implement overlay diff
  • Apply Changes followed by a no-change IWI run removes the AC changes
Build Output C++
  • cxxLanguageKindFromExtension return CPP for most files, even if they are not CPP files
CPU
  • [ChromeOS] C++ function tracing is not working: simpleperf depends on missing libncurses.so.5
Embedded Emulator
  • Wear OS Round: display encroaches on device frame during startup
Gradle
  • AGP recording OS version instead of OS name
Lint
  • Issue #170585495: Lint Baseline generates with platform depended file separators
New Project Wizard
  • [NewProject] Basic template illustration shadows are off with others
Profilers
  • Update the "report a bug" link to use the right component
Running Tests
  • Issue #162006827: Robolectric tests run in Android Studio 4.1 fail with a bad ASM dependency
  • Issue #170328018: AS 4.1+ fail to run junit tests, compailing about junit version being too low
Shrinker (R8)
  • Create a test for invalid signature rewriting
  • Issue #170915828: Failed to transform aar with StringIndexOutOfBoundsException when using R8 2.1.62 (used by AGP 4.1.0)
  • Issue #171369796: Method defined in both an interface and a base class throws null
  • Issue #171136616: R8 in AGP 4.1 optimization causes early initialization leading to NoClassDefFound error
  • Issue #171642432: Can't able to generate signed aab/apk with minifyEnabled set to true (> Task :app:minifyReleaseWithR8 FAILED)
  • Issue #171289133: Support allowshrinking modifier