分享好友 最新动态首页 最新动态分类 切换频道
Android Studio 3.5 (August 2019)
2024-12-26 20:36

Android Studio 3.5 (August 2019)

Android Studio 3.5 is a major release and a result of Project Marble. Beginning with the release of Android Studio 3.3, the Project Marble initiative has spanned multiple releases that focus on improving three main areas of the IDE: system health, feature polish, and fixing bugs.

For information about these and other Project Marble updates, read the Android Developers blog post or the sections below.

We also want to thank all of our community contributors who have helped with this release.

This section describes the changes in Android Studio 3.5 that are focused on improving system health.

Android Studio now notifies you if it detects that you could improve performance by increasing the maximum amount of RAM that your OS should allocate for Android Studio processes, such as the core IDE, Gradle daemon, and Kotlin daemon. You can either accept the recommended settings by clicking the action link in the notification, or you can adjust these settings manually by selecting File > Settings (or Android Studio > Preferences on macOS), and then finding the Memory Settings section under Appearance & Behavior > System Settings. To learn more, see Maximum heap size.

Memory problems in Android Studio are sometimes difficult to reproduce and report. To help solve this problem, Android Studio lets you generate a memory usage report by clicking Help > Analyze Memory Usage from the menu bar. When you do so, the IDE locally sanitizes the data for personal information before asking whether you want to send it to the Android Studio team to help identify the source of the memory issues. To learn more, see Run a memory usage report.

Android Studio now automatically checks whether certain project directories are excluded from real-time antivirus scanning. When adjustments can be made to improve build performance, Android Studio notifies you and provides instructions on how to optimize your antivirus configuration. To learn more, see Minimize the impact of antivirus software on build speed.

This section describes the changes in Android Studio 3.5 that are focused on improving existing features.

Apply Changes lets you push code and resource changes to your running app without restarting your app—and, in some cases, without restarting the current activity. Apply Changes implements a completely new approach for preserving your app’s state. Unlike Instant Run, which rewrote the bytecode of your APK, Apply Changes redefines classes on the fly by leveraging the runtime instrumentation supported in Android 8.0 (API level 26) or higher.

To learn more, see Apply Changes.

The IDE has a new drop-down menu that lets you quickly select which device you'd like to deploy your app to. This menu also includes a new option that lets you run your app on multiple devices at once.

The IDE now better detects when Gradle periodically clears your build cache when reducing its hard disk consumption. In previous versions, this state caused the IDE to report missing dependencies and Gradle sync to fail. Now, the IDE simply downloads dependencies as needed to ensure that Gradle sync completes successfully.

  • AAPT compilation and linking
  • R8 and ProGuard
  • Dexing
  • Resource merging
  • XML file parsing
  • Javac, Kotlinc, and CMake compilation

Improved update experience to provide more information and actions to help you update the IDE and the Android Gradle plugin. For example, more sync and build errors include actions to help you mitigate errors when updating.

It’s important to keep in mind, you can update the IDE independently of other components, such as the Android Gradle plugin. So, you can safely update the IDE as soon as a newer version is available, and update other components later.

Android Studio 3.5 includes several improvements to layout visualization, management, and interaction.

When working with , a new Constraints section in the Attributes panel lists the constraints relationships of the selected UI component. You can select a constraint either from the design surface or from the constraints list to highlight the constraint in both areas.

Similarly, you can now delete a constraint by selecting it and pressing the key. You can also delete a constraint by holding the key ( on macOS) and clicking on the constraint anchor. Note that when you hold the or key and hover over an anchor, any associated constraints turn red to indicate that you can click to delete them.

When a view is selected, you can create a constraint by clicking on any of the + icons in the Constraint Widget section of the Attributes panel, as shown in the following image. When you create a new constraint, the Layout Editor now selects and highlights the constraint, providing immediate visual feedback for what you've just added.

When creating a constraint, the Layout Editor now shows only the eligible anchor points to which you can constrain. Previously, the Layout Editor highlighted all anchor points on all views, regardless of whether you could constrain to them. In addition, a blue overlay now highlights the target of the constraint. This highlighting is particularly useful when attempting to constrain to a component that overlaps with another.

In addition to the above updates, Android Studio 3.5 also contains the following Layout Editor improvements:

  • The Constraint Widget and default margin drop-down now allow you to use dimension resources for margins.
  • In the Layout Editor toolbar, the list of devices that determine the size of the design surface has been updated. In addition, snapping behavior while resizing has been improved, and the resizing handles on the design surface are now always visible. When resizing, new overlays appear that show common device sizes.
  • The Layout Editor has a new color scheme that improves consistency and reduces contrast between components, text, and constraints.
  • Blueprint mode now includes text support for some components where text wasn't being shown.

For more information about these changes, see Android Studio Project Marble: Layout Editor.

In addition to adding incremental annotation processing support for Data Binding, the IDE improves smart editor features and performance when creating data binding expressions in XML.

Android Studio 3.5 includes several changes that improve support for C/C++ projects.

Build Variants panel improvements for single variant sync

You can now specify both the active build variant and active ABI in the Build Variants panel. This feature simplifies build configuration per module and can also improve Gradle sync performance.

To learn more, see Change the build variant.

Side-by-side versions of the NDK

You can now use multiple versions of the NDK side-by-side. This feature gives you more flexibility when configuring your projects—for example, if you have projects that use different versions of the NDK on the same machine.

If your project uses Android Gradle plugin 3.5.0 or higher, you can also specify the version of the NDK that each module in your project should use. You can use this feature to create reproducible builds and to mitigate incompatibilities between NDK versions and the Android Gradle plugin.

To learn more, seeInstall and configure the NDK, CMake, and LLDB.

Android Studio now officially supports ChromeOS devices, such as the HP Chromebook x360 14, Acer Chromebook 13/Spin 13, and others that you can read about in the system requirements. To get started, download Android Studio on your compatible ChromeOS device and follow the installation instructions.

Note: Android Studio on ChromeOS currently supports deploying your app only to a connected hardware device. To learn more, read Run apps on a hardware device.

Conditional delivery allows you to set certain device configuration requirements for feature modules to be downloaded automatically during app install. For example, you can configure a feature module that includes functionality for augmented reality (AR) to be available at app install for only devices that support AR.

This delivery mechanism currently supports controlling the download of a module at app install-time based on the following device configurations:

  • Device hardware and software features, including OpenGL ES version
  • User country
  • API level

If a device does not meet all the requirements you specify, the module is not downloaded at app install-time. However, your app may later request to download the module on demand using the Play Core Library. To learn more, read Configure conditional delivery.

The core Android Studio IDE has been updated with improvements from IntelliJ IDEA through the 2019.1 release, such as theme customization.

The last IntelliJ version that was included with Android Studio was 2018.3.4. For more information about the improvements from other IntelliJ versions that are included cumulatively with this release of Android Studio, see the following bug-fix updates:

  • IntelliJ IDEA 2018.3.6{: .external-link}
  • IntelliJ IDEA 2018.3.5{: .external-link}

For information on what’s new in Android Gradle plugin 3.5.0, such as improved support for incremental annotation processing and cacheable unit tests, see its release notes.

Thank you to all of our community contributors who have helped us discover bugs and other ways to improve Android Studio 3.5. In particular, we'd like to thank the following people who reported P0 and P1 bugs:

最新文章
西安注射物取出医院排名及透明价格表!
西安注射物取出技术医院榜单及价格表已更新!揭晓西安地区注射物取出技术的医院排名。经过用户消费行为和本站客户反馈的综合评估,我们为您推荐以下医院:西安市中心医院烧伤整形外科、西京医院整形外科、西安交通大学医院烧伤整形美容科等
安硕信息究竟是什么概念股安硕信息属于金融科技、信创以及百度概念股。首先,安硕信息
安硕信息究竟是什么概念股安硕信息属于金融科技、信创以及百度概念股。首先,安硕信息作为一家专注于为银行等金融机构提供信贷风险一体化解决方案的公司,其主营业务涉及软件开发服务,积极拥抱新技术,如适配多种操作系统和构建金融大数据
高效五大步骤揭秘
高效五大步骤揭秘:1. 明确目标与定位;2. 精选合适的技术和平台;3. 精细设计用户体验;4. 高效内容构建与优化;5. 持续与优化。遵循这些步骤,打造出功能完善、用户体验佳的网站。随着互联网的飞速发展,网站已成为企业展示形象、拓展市
谷歌SEO:独立站内部链接的重要性
了解内部链接以及网站上的页面如何为新页面贡献价值非常重要,特别是为了提高特定关键字或短语的搜索引擎排名。在本文,我们将介绍内部链接应该怎么做,以及我们可以优化的一些seo方向,从而为独立站带来更多流量。什么是内部链接?内部链
重复文件清理工具-Duplicate Cleaner Pro
又到了每天的实用工具推荐环节,话不多说直接进入正题!以下工具百度搜索名称即可获取,找不到的私聊我MadAppLauncher是一个简单的应用程序启动器。启动文件在两到三击键,只需激活应用程序启动程序,使用这款软件可以轻松地对应用程序、文
荣耀手机别乱买,目前这4款几乎“零差评”,用五年不卡顿
近期有不少网友问我,荣耀手机是不是华为手机?说实话,现在的荣耀手机并不是华为手机,但在系统生态和兼容性方面,依旧做得相当出色。因为,如果你目前使用了很多华为的设备,选购荣耀手机也是不错的选择。不过现在在售的荣耀手机有很多,
这次,有什么不一样?
来源:雪球App,作者: 宏利基金管理,(https://xueqiu.com/5185203169/308646825)近期,“A股”频上热搜。 2024年国庆节后第一个交易日,上证指数盘中冲破3600点,当日A股全天交易额3.5万亿。距离上次沪指收盘价站上3600点,已过去1008
SEO、SEM常见术语
问什么是搜索引擎优化,什么是搜索引擎营销等术语,所以就稍微整理了份SEO、SEM相关的术语,供大家了解:目录(Directory) :目录是由人为编辑的搜索结果。大多数目录依靠的是人为提交而不是爬行器(spider)。(参见和搜索引擎。)关键
让身体成为一个开放的领域,与万物交融,与世界共生
[法]娜斯塔西娅·马丁 著袁筱一 译一、遇见一个不寻常且不平凡的故事谢晶:《从熊口归来》是“差异与共生”这套丛书的一个契机。我们这几年在读到一些书的时候会感慨,如果自己在做学生的时候就读到它们,会少走多少弯路。它们探讨人的自我
相关文章
推荐文章
发表评论
0评