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实用指南》,已在百度阅读首发.

更多相关文章

  1. 新书内容连载(3):Android(安卓)SDK中常用命令行工具(一)
  2. Android热修复技术链接收集
  3. Android和Linux kernel版本对应表
  4. 修复 XE8 for Android(安卓)方向传感器 headingX,Y,Z 不会动的问
  5. 【Android热修复与插件化 三】ClassLoader详解
  6. Android热补丁动态修复技术(完结篇):自动生成打包带签名的补丁,重
  7. 《Android深度探索(卷1):HAL与驱动开发》新书发布
  8. 修复android获取ip地址失败 Fix Obtaining IP Address Android(
  9. cocos2d-x-2.1.4在NDK r9下的编译问题

随机推荐

  1. Android(安卓)-- ListView(1)
  2. Android面经总结
  3. android 创建数字签名应用程序
  4. android studio no marked region found
  5. Development and remote installation of
  6. 【Android】ToolBar设置NavigationIcon不
  7. Android(安卓)内核与标准Linux内核的区别
  8. 修改android默认语言选项
  9. Android(安卓)左右滑动切换页面或Activit
  10. android 自定义view支持gif格式播放