posted Feb 25, 2016, 8:49 PM by Chris Iremonger
[
updated Feb 29, 2016, 1:53 PM by Tor Norbye
]
We've just pushed Android Studio 2.0 Beta 6 to the canary channel, as well as 2.0.0-beta6 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: Apps that were using multiple processes (via android:process in the manifest) were not being updated properly with Instant Run. For the time being, we have turned off Instant Run in such a scenario. Certain devices that have an incorrect version of the “run-as” command behaved incorrectly with instant run. This would manifest as instant run being unable to upload a new version when the application wasn’t running. We now properly handle this scenario and gracefully degrade to doing a full apk installation. Instant Run was not working properly if the application was in the background. We now do the correct updates in such a scenario - the application will be terminated and restarted. We automatically turn off Proguard or Jacocco when used with Instant Run. Handling of native libraries : - changing source code of a native library should trigger a coldswap. - hotswap can lead to UnsatisfedLink exceptions Applications using AndroidAnnotations are now compatible with InstantRun. During hot swaps, initial code and incremental updates are no longer loaded from a different class loader
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 6 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 6 page.
|
|