Android Studio 2.0 Beta 5 released to fix several serious bugs related to immediate operation.
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 if using annotation processors, but it turns out there is still some bugs where Resource constant field changes is not propagated correctly, which led to runtime crashes after restarting the app. May sound like a big performance sacrifice, but it's not:the javac stage is typically a small part of the build (which I S 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.
The change the the-the-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 leads to crashes or unexpec Ted Intent data.
Note that your 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.
:
Windows:https://dl.google.com/dl/android/studio/ide-zips/2.0.0.14/android-studio-ide-143.2609919-windows.zip ( 314 MB)
Mac:https://dl.google.com/dl/android/studio/ide-zips/2.0.0.14/android-studio-ide-143.2609919-mac.zip (312 MB)
Linux:https://dl.google.com/dl/android/studio/ide-zips/2.0.0.14/android-studio-ide-143.2609919-linux.zip (312 MB )
If you want to learn more about Android Studio, please refer to my new book, "Android Studio Practical Guide", has been reading the first in Baidu.
Android Studio 2.0 Beta 5 released to fix several serious bugs related to immediate operation.