Android Studio 3.6 stable release

Android Studio 3.6  stable version has been released, this version is also "Project Marble" released after the end of the first version, "Project Marble" is a program Android Studio team last year to enhance the quality of products carried out during this period, the team suspended development of new features, concentrate on improving product quality. The program focused on three main areas of improvement Android Studio: system health , functional as well as bug fixes, trying to build powerful and stable foundation features and workflow with Android Studio Android emulator. So Android Studio 3.6, in addition to the introduction of a small portion of the functionality and improve the existing functions, the development team also spent a great deal of effort to resolve the error and improve infrastructure performance, to ensure reach the last set of high quality standards.

As mentioned in the announcement, this version is mainly for code editing and debugging have been improving the quality of patients with respect.

3.6 part of the update highlights include:

  • The introduction of new ways to use XML to quickly design, develop and app layout preview
  • Design of new class Editor "split views (Split View)"
  • SDK download support for HTTP
  • Fragment automatically detect memory leaks and Activity
  • The Google Maps application embedded directly into the Android emulator

Download: https://developer.android.com/studio/#downloads

Binding view ( View the Binding )

When you refer to in code view, View binding by (compile-time) compiler providing security and easy for developers to write code that is more easily view and interact. With this feature enabled, View binding will generate a binding class for each XML layout file module contains. In most cases, view binding replaces findViewById. Developers can reference all have ID's view, without worrying about the risk of a null pointer or a class cast exception occurs To enable view binding in the project, add the following in each module of build.gradle file:

android {
    viewBinding.enabled = true
}

For more information check out this blog .

Add "Split View" Design Editor class

And navigation such as a layout editor editor such are "designed" Editor now aspect adds "split view", the developer may simultaneously view UI "design" and "code" view, operation effect as follows:

Split view of an alternative and improved early "preview window" (Preview window), supports configured for a file by file, to preserve context information. Such as zoom level and design view options, so developers can choose the most appropriate view for each use case. To enable split view feature, click the upper right corner of the editor window "Split" icon.

Recoverable SDK download

The new SDK is an increase of HTTP download function, when we use Android Studio SDK Manager to download Android SDK components and tools to support the recovery was interrupted (for example, due to network problems) downloads without having to download it again from scratch. When the network is unreliable, this enhanced functionality is especially useful for downloading large files, such as downloading the Android emulator or system image file.

▲ pause and resume downloads

Memory Profiler is a new leak detection

根据开发者的反馈,3.6 版本在 Memory Profiler 中添加了检测 Activity 和 Fragment 实例是否存在内存泄露的功能。首先,在 Memory Profiler 中抓取或导入 heap dump 文件,然后选中“Activity/Fragment Leaks”复选框以生成结果。

有关 Android Studio 如何检测内存泄漏的更多信息,请查看文档

Android 模拟器嵌入 Google Maps UI 和多屏支持

新版本将 Google Maps UI 嵌入到扩展控件菜单中,开发者可更容易指定位置并在两个地点之间构造路线。

随着越来越多设备支持分屏模式,在各种多屏环境中测试应用程序变得十分重要。此版本为 Android 模拟器增加了多屏支持。

详细更新内容请查看
https://android-developers.googleblog.com/2020/02/android-studio-36.html

Guess you like

Origin www.oschina.net/news/113623/android-studio-3-6-released