Recent Changes‎ > ‎

Android Studio 2.0 Beta 5 Available in the Canary Channel

posted Feb 16, 2016, 8:42 PM by Tor Norbye
We've just pushed Android Studio 2.0 Beta 5 to the canary channel, as well as 2.0.0-beta5 of the Gradle plugin to jcenter. If all goes according to plan, we hope to roll this out to the beta channel in a few days. 

This build fixes a couple of important bugs related to instant run:
  • Turn off Gradle's javac incremental compilation in all scenarios. In previous builds we had turned it off when using annotation processors, but it turns out there are still some bugs where resource constant field changes are not propagated correctly, which led to runtime crashes after restarting the app. This may sound like a big performance sacrifice, but it's not: the javac stage is typically a small part of the build (which is dominated by dex and adb push and install) -- and note version 1.5.x of the Gradle plugin wasn't using incremental javac compilation at all.
  • Change the way the app is restarted after making an incompatible change (a "coldswap"). The technique we were using resulted in some state being persisted across app runs, which could lead to crashes or unexpected intent data.
Note that you need to use the latest version of Gradle and Studio together, and in this build we automatically update the Gradle version if already using a previous non-stable (e.g. 2.x) preview version.

Thanks for testing our preview builds, and please continue reporting bugs!  (via Help > Submit Feedback.)

Installation
You can update your current 2.0 Preview installation to 2.0 Beta 5 via the built-in patch mechanism (Check for Updates).
You can also update from 1.5 to 2.0 Beta via the patch mechanism, but you may not want to do that: See our page about how to keep multiple installations simultaneously while Studio is in preview mode.
You can also download a full zip of 2.0 Beta from the Android Studio 2.0 Beta 5 page.

Problems?
If you run into problems, be sure to check the Known Issues page which we'll update as necessary.

Comments