Recent Changes

The following features and bug fixes were recently checked in. For complete details, see the git changelogs at

ConstraintLayout alpha 9 is now available

posted by Nicolas Roard

We are very excited to announce the release of ConstraintLayout alpha 9 -- this contains the final feature set for 1.0, and is the final step before releasing the first beta candidate release.
It's available in the SDK Manager (under the "Support Repository" section).

Note: As for alpha 8, if you are using Android Studio 2.2 and it is your first installation of ConstraintLayout, you might have to restart studio (or invalidate caches) after installing alpha 9 (the editor behavior may not be correct, with widgets temporarily snapping to the top left corner). If you were already using alpha 8 that should not be necessary.

We fixed a few issues in this build:
  • we had a regression in the way we handled text wrap
  • correct handling of RTL for horizontal bias
  • correct handling of GONE for constraint ratios
We added some new features and some performance improvements
  • loading constraints directly from XML files with ConstraintSet
  • support for Chains in the layout and in ConstraintSet
A few words about Chains

Chains are a very powerful new feature that allow you to set up certain group behavior that would otherwise be difficult or impossible to do in ConstraintLayout. They work in a single axis (you can have a vertical chain without having the elements of the chain be affected horizontally), and maintain a flat hierarchy. 
  • Widgets are considered part of a chain if they are connected to other widgets with bi-directional constraints, e.g. in A<-B<->C->D, B and C are part of a chain
  • Chains allow you to control how the elements of a chain will be positioned over the available space; e.g. |AB---|, |---AB|, |--AB--|, |-A-B-|, or stretched |AAAB|
  • A chain can be either packed (layout_constraintHorizontal_chainPacked and layout_constraintVertical_chainPacked attributes of the first widget in the chain), in that case the chain position will be controlled via the layout_constraintHorizontal_bias and layout_constraintVertical_bias attributes (still on the first widget in the chain).
  • Or spread. In that case the widgets of the chain will be positioned equally in the available space. If one or more widget is set to MATCH_CONSTRAINT, they will divide the available space equally and be resized to use it. How much each widget set to MATCH_CONSTRAINT will use the available space can be controlled by the attributes layout_constraintHorizontal_weight and layout_constraintVertical_weight

Note that while chains allow you to keep a flat hierarchy (e.g. no need to use an embedded sub layout), it is perfectly fine to continue using sub layouts (e.g. a linear layout inside a constraint layout), particularly if they help while building your UI conceptually. The idea with chains though is that it allows you to use sub layouts only when it makes sense.

Important: The layout editor in AndroidStudio 2.2 does not support the new Chains feature, so will not have affordances to help you create chains. The preview visualisation ("design mode") in the layout editor will show you the correct positioning if you use chains, but the blueprint mode will not, showing incorrect bounds for the widgets. We are planning to update the editor in our next Android Studio preview release, to support Chains adequately.

Please give us feedback on this release, as this should be our last alpha :)

Android Studio 2.2 and Emulator 25.2.2 are Stable

posted Sep 19, 2016, 10:36 AM by Chris Iremonger   [ updated Sep 19, 2016, 11:09 AM ]

We've released Android Studio 2.2 and Emulator 25.2.2 to the dev, beta, and stable release channels.

Android Studio 2.2 Stable

Please see our Android Studio 2.2 release blog post for full details on this release.

This release is focused on bug fixes, performance, and the following new features:

ConstraintLayout alpha 8 is now available

posted Sep 13, 2016, 11:07 AM by Nicolas Roard   [ updated Sep 13, 2016, 11:14 AM ]

We've just released ConstraintLayout alpha 8, available in the SDK Manager (under the "Support Repository" section)

Note: due to API change, you might have to restart Android Studio 2.2 after upgrading to alpha 8 for layout preview to work.

This build has many changes from alpha 7:
  • Left-to-right bug fix (layout params were cached, preventing you to change them at runtime)
  • Performance improvements on first layout
  • New visibility behavior when dealing with View.GONE widgets -- now, gone widgets are completely removed (their connections margins are set to zero, their size is zero). But we added new attributes (app:layout_goneMarginTop/Bottom/Left/Right/Start/End) to specify different margin values for widgets connected to a GONE widget. This let you better adapt a layout when a widget is marked as gone, as you can apply different margin values depending if the widget you connect to is gone or not.
  • Ratio support was extended to work when both dimensions are set to MATCH_CONSTRAINT (0dp). This deal with the case when one dimension is constrained and you want to define the other dimension as a ratio.
  • New Programming API via a ConstraintSet class that let you create a set of constraints at runtime and apply it to a ConstraintLayout -- no need to manually set up LayoutParams.
  • And finally, documentation! you will be able to find it here: https://developer.android.com/reference/android/support/constraint/package-summary.html
As always, please try it, we want your feedback!

Android Studio 2.2 RC 2 is now available

posted Sep 8, 2016, 6:17 PM by Chris Iremonger   [ updated Sep 9, 2016, 7:32 AM by Tor Norbye ]

We've just released Android Studio 2.2 RC 2 to the canary channel. If all looks good we'll promote it to the beta channel in a couple of days. 

For those users who are trying Android Studio 2.2 for the first time. We recommend reviewing our blog post to get an overview of all of the changes in 2.2.

This build contains a handful of bug fixes on top of RC 1. At this point we're very close to releasing 2.2 stable, so we'd really appreciate everyone taking this build for a spin and letting us know if anything major is broken.
Fixed Issues
  • Layout EditorThere is a resolved bug in the layout editor's property sheet with editing style appearance properties (it will strip the @style prefix).
  • Patching: You should now be able to patch from stable versions back to 2.0.
  • Building: We fixed a bug in the incremental packaging step which occasionally would trip the malware scanner
  • Many more fixes.
Thanks to everyone for their bug and crash reports, and keep them coming!

Android Studio 2.2 RC is now available

posted Sep 1, 2016, 4:53 PM by Chris Iremonger   [ updated Sep 2, 2016, 4:38 PM ]

We've just released Android Studio 2.2 RC to the canary channel. If all looks good we'll promote it to the beta channel in a couple of days. 

For those users who are trying Android Studio 2.2 for the first time. We recommend reviewing our blog post to get an overview of all of the changes in 2.2.

This build contains a handful of bug fixes on top of beta 3. At this point we're very close to releasing 2.2, so we'd really appreciate everyone taking this build for a spin and letting us know if anything major is broken.

After the first 24 hours, we do have some known issues we are already working through:

  • Layout EditorThere is a known bug in the layout editor's property sheet with editing style appearance properties (it will strip the @style prefix). We're working on a fix right now.
  • Jack Build: There are a couple of additional bugs related to Jack that we are investigating (221424, 220858).     
Thanks to everyone for their bug and crash reports, and keep them coming!

Update log:
  • Added known issues

Android Studio 2.2 Beta 3

posted Aug 26, 2016, 12:08 PM by Tor Norbye   [ updated Aug 26, 2016, 2:44 PM by James Lau ]

We've just released Android Studio 2.2 Beta 3 to the canary channel. If all looks good we'll promote it to the beta channel in a couple of days. Due to some bugs in our release infrastructure, we do not have patches for this build; you'll need to download a full zip. We're working on this.

For those users who are trying Android Studio 2.2 for the first time. We recommend reviewing our blog post to get an overview of all of the changes in 2.2.

This build contains a large number of bug fixes as we work to reach finish 2.2.
  • A fix to instant run instrumentation now requires the SDK platform corresponding to the device API level to be installed. For example, if you are running on a lollipop device, you must have the lollipop SDK installed as well.
Please file feedback ASAP if you run into any issues. With this release we plan to continue only take critical fixes to help stabilize the build. The sooner you file bugs the higher chance it will make it into the 2.2 release.

Thanks to everyone for their bug and crash reports, and keep them coming!


Android Studio 2.2 Beta 2

posted Aug 18, 2016, 1:40 PM by Chris Iremonger   [ updated Aug 25, 2016, 2:11 PM by James Lau ]

We've just released Android Studio 2.2 Beta 2 to the canary, Dev, and Beta channels. If feedback looks positive we will promote this build to Dev and Beta shortly.

For those users who are trying Android Studio 2.2 for the first time. We recommend reviewing our blog post to get an overview of all of the changes.

This build contains a large number of bug fixes as we work to reach Android Studio 2.2 RC.
  • Unit Test and Test Issues generally should now be working again.
  • Gradle and Gradle Plugin Bug Fixes including around pro guard and native development
  • New experimental build cache to speed up build times. See Build Cache page for more info on how to use this feature.
  • More bug fixes
Please file feedback ASAP if you run into any issues. With this release we plan to continue only take critical fixes to help stabilize the build. The sooner you file bugs the higher chance it will make it into the 2.2 release.

Thanks to everyone for their bug and crash reports, and keep them coming!

Update Log:
  • Aug 22nd - Promoted Beta 2 to Dev and Beta Channels

ConstraintLayout - alpha 7 available

posted Aug 15, 2016, 9:11 PM by Nicolas Roard

We've just released ConstraintLayout alpha 7, available in the SDK Manager (under the "Support Repository" section)

This build has a few changes from alpha 6, fixing some issues with scrollview, and cleaning up some apis:
  • remove deprecated centerX/Y attributes
  • remove deprecated layout_constraintGuide_Percent attribute taking integers (superseded in alpha 6 by layout_constraintGuide_percent attribute taking a float from [0..1])
As always, please try it, feedback is very much encouraged!

Android Studio 2.1.3 is Available

posted Aug 15, 2016, 6:33 PM by Chris Iremonger   [ updated Aug 15, 2016, 11:33 PM by James Lau ]

This update adds compatibility with Gradle 2.14.1, which includes performance improvements, new features, and an important security fix. For more details, see the Gradle release notes.



Android Studio 2.2 Beta Available

posted Aug 9, 2016, 3:09 PM by Chris Iremonger   [ updated Aug 11, 2016, 5:09 PM ]

We've just released Android Studio 2.2 Beta 1 to the canary, dev, and beta channels.

For those users who are trying Android Studio 2.2 for the first time. We recommend reviewing our blog post to get an overview of all of the changes.

This build contains a large number of bug fixes as we work to reach Android Studio 2.2 RC.
  • Constraint Layout and New Layout Editor Bug fixes
  • Improvements to the interaction between Gradle 2.14.1 and Android Studio 2.2.
  • Instant Run and Build Bug Fixes
  • Memory performance improvements
We continue to feel good about these releases, so please file feedback ASAP if you run into any issues. With this release we plan to only take absolutely critical fixes to help stabilize the build. The sooner you file your feedback the higher chance it will make it into the 2.2 release.

Thanks to everyone for their bug and crash reports, and keep them coming!



Change Log:
Updated text to promote the dev and beta channel Release.

1-10 of 294