Android Studio 2.0 Beta 5发布,修复几个与即时运行相关的严重BUG.
2016-02-18 11:08
711 查看
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实用指南》,已在百度阅读首发.
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实用指南》,已在百度阅读首发.
相关文章推荐
- 关于Android皮肤更换分享
- android 开发过程中,两个包名相同的项目如何上传到同一个应用商城
- android下拉刷新控件 android-pulltorefresh
- Android 添加TextView删除线(代码简单)
- Android重写TextView实现文字整齐排版的方法(附demo源码下载)
- 【Android】10.2 使用Android Support Library增强组件功能
- 【Android】10.1 扩展组件库和其他视图--本章示例主界面
- android应用签名详解
- android 按钮事件
- Android studio 各种快捷键,使用技巧
- Android几个使用频率很高的adb命令小结
- ADB常用命令
- Android 动画详解
- android自定义钟摆loadingView
- Gradle的基本使用
- Android Studio默认产生Fragment
- Android通过Movie展示Gif格式图片
- Android Graphics (一) :Paint
- Android studio debug 模式 使用release签名
- Android Service远程调用 代码示例