Android Studio 2.0 Beta 5發佈,修復幾個與即時運行相關的嚴重BUG.

Android Studio 2.0 Beta 5發佈,修復幾個與即時運行相關的嚴重BUG.

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.

下載地址:

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)

如果你想更深入的瞭解Android Studio,請參考我的新書《Android Studio實用指南》,已在百度閱讀首發.

發佈了187 篇原創文章 · 獲贊 413 · 訪問量 295萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章