Android Studio 3.5 稳定版发布,废弃 Instant Run

2019-08-27

JiangRen Mr

User Interface Freezes

在 Android Studio 3.5 中,改进输入延迟,用 XML 编辑数据绑定表达式的速度更快。

Build Speed

Android 应用程序开发的另一个长期问题是构建应用程序所需的时间。新版的 Android Studio 为应用程序编译带来了两个显著的改进,第一个是注解处理器中添加了增量构建支持,包括 Glide、AndroidX 数据绑定、Dagger,、Realm 和 Kotlin(KAPT)。

第二个改进涉及 Windows 上的磁盘 I/O。Windows Defender(现在称为 Windows Security)具有实时扫描文件(创建或修改文件时)的功能,以保护用户免受恶意软件的攻击。Android Studio 3.5 将显示一个提示,说明你可以采取哪些步骤将项目目录排除在这个实时保护之外,完成最佳设置以加快构建速度。

System Health Notification

Apply Changes

Android Studio 3.5 中的另一个显著变化是引入了 Apply Changes,它取代了旧的 Instant Run。Instant Run 是为了更容易地对应用程序进行小的更改并测试它们,但它会产生一些问题。为了解决这一问题,谷歌已经彻底删除了 Instant Run,并从根本上构建了 Apply Changes ,不再在构建过程中修改 APK,而是使用运行时工具动态地重新定义类,它应该比立刻运行更可靠和更快。

APP 部署流程

该版本有一个新的下拉菜单,可以快速选择要将应用程序部署到哪个设备。此菜单还包括一个新选项,允许一次在多个设备上运行应用程序。

Target device drop-down menu.

Auto-recommend Memory Settings

IDE 将识别应用程序项目何时需要更多内存,并通知你增加内存堆大小,或者你可以在 Appearance & Behavior → Memory Settings 下自己调整设置

Memory Settings

综上所述,Android Studio 3.5 有数以百计的 bug 修复和显著的更改:

System Health

  • Memory Settings

  • Memory Usage Report

  • Reduce Exceptions

  • User Interface Freezes

  • Build Speed

  • IDE Speed

  • Lint Code Analysis

  • I/O File Access

  • Emulator CPU Usage

Feature Polish

  • Apply Changes

  • Gradle Sync

  • Project Upgrades

  • Layout Editor

  • Data Binding

  • App Deployment

  • C++ Improvements

  • Intellij 2019.1 Platform Update

  • Conditional Delivery for Dynamic Feature Support

  • Emulator Foldables & Google Pixel Device Support

  • Chrome OS Support

有关更多细节,请访问 Android Studio 发布说明页面:

https://developer.android.com/studio/releases#3-5-0

下载地址:

https://developer.android.com/studio/

本文章转自开源中国。
近期开课hot

Python零基础入门

start2025/02/12 03:14 (Sydney)

Web全栈班24期 NodeJS方向

start2024/12/08 11:30 (Sydney)

logo

Follow Us

linkedinfacebooktwitterinstagramweiboyoutubebilibilitiktokxigua

We Accept

/image/layout/pay-paypal.png/image/layout/pay-visa.png/image/layout/pay-master-card.png/image/layout/pay-stripe.png/image/layout/pay-alipay.png

地址

Level 10b, 144 Edward Street, Brisbane CBD(Headquarter)
Level 2, 171 La Trobe St, Melbourne VIC 3000
四川省成都市武侯区桂溪街道天府大道中段500号D5东方希望天祥广场B座45A13号
Business Hub, 155 Waymouth St, Adelaide SA 5000

Disclaimer

footer-disclaimerfooter-disclaimer

JR Academy acknowledges Traditional Owners of Country throughout Australia and recognises the continuing connection to lands, waters and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders past and present. Aboriginal and Torres Strait Islander peoples should be aware that this website may contain images or names of people who have since passed away.

匠人学院网站上的所有内容,包括课程材料、徽标和匠人学院网站上提供的信息,均受澳大利亚政府知识产权法的保护。严禁未经授权使用、销售、分发、复制或修改。违规行为可能会导致法律诉讼。通过访问我们的网站,您同意尊重我们的知识产权。 JR Academy Pty Ltd 保留所有权利,包括专利、商标和版权。任何侵权行为都将受到法律追究。查看用户协议

© 2017-2024 JR Academy Pty Ltd. All rights reserved.

ABN 26621887572