Android Studio 2.0 Beta 5公布,修复几个与即时执行相关的严重BUG.
2018-03-21 15:31
525 查看
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 Studio 2.0 Beta 5发布,修复几个与即时运行相关的严重BUG.
- Android Studio 2.0 Beta 5发布,修复几个与即时运行相关的严重BUG.
- Moblin 2.0 beta 修复bug再度发布
- .NET 4.0 Beta 2将增网络功能、修复大量Bug
- 日常开发bug修复——火狐浏览器提交表单时表单执行两次
- Android Studio 2.0 Instant Run即时运行功能实现分析
- 几个任务执行相关的类
- 【Hadoop】Hadoop2.7.3执行job下来几个bug和解决思路
- android studio如何使用已创建的tag,切换到tag,在tag基础上修复BUG
- Windows Mobile Build 10080预览版系统严重BUG被修复了
- Android Studio 使用中的相关“Bug”记录
- Android Studio 2.3.1修复了Instant Run的BUG
- c# 动态执行脚本,相关的几个脚本引擎.
- Cocos2d-x 3.0 JNI BUG 修复。(Android 如何创建一个线程 延迟执行函数 创建一个随机数)
- Android Studio 2.0 Preview发布,附下载地址,支持即时运行和GPU Profiler
- ios开发过程中碰到的严重bug,修复…
- [转载]基于TFS实践敏捷-修复Bug和执行代码评审
- android studio 升级3.0后,遇到的相关异常(6-7个bug)描述和解决办法!
- android studio 工程中跟包名packageName相关的几个地方
- 修复 Universal-image-loader 的几个Bug