博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Android Studio 3.3功能
阅读量:2533 次
发布时间:2019-05-11

本文共 5998 字,大约阅读时间需要 19 分钟。

Android Studio 3.3 is the latest stable release. In this tutorial, we’ll discuss the new features available in this release. Google calls this update as Project Marble.

Android Studio 3.3是最新的稳定版本。 在本教程中,我们将讨论此版本中可用的新功能。 Google将此更新称为Project Marble。

The focus of Android Studio 3.3 is refinement and quality.

Android Studio 3.3的重点是完善和质量。

Android Studio 3.3功能 (Android Studio 3.3 Features)

We can divide new features into following categories.

我们可以将新功能分为以下几类。

1.开发人员功能 (1. Developer Features)

  • Navigation Editor

    导航编辑器
  • Android Gradle plugin updates

    Android Gradle插件更新
  • IntelliJ IDEA 2018.2.2 Changes

    IntelliJ IDEA 2018.2.2更改
  • Delete unused Android Studio directories

    删除未使用的Android Studio目录
  • Single-variant project sync

    单变量项目同步
  • Kotlin 1.3.11 Update

    Kotlin 1.3.11更新
  • Clang-Tidy Support for C++

    对C ++的Clang-Tidy支持
  • New Project Wizard Look

    新项目向导外观

2.构建功能 (2. Build Features)

  • Improved incremental Java compilation when using annotation processors

    使用注释处理器时改进的增量Java编译
  • Lazy task configuration

    惰性任务配置
  • Single-variant project sync

    单变量项目同步
  • Android App Bundles now supports Instant App

    Android App Bundles现在支持Instant App

3.测试功能 (3. Testing Features)

  • Multiple Emulator AVD instance Launch

    多个模拟器AVD实例启动
  • Android 9 Pie — Emulator System Images

    Android 9 Pie —模拟器系统图像
  • Emulator Snapshot Save Speed Improvement

    仿真器快照保存速度提高

4.优化功能 (4. Optimization Features)

  • Profiler Performance Improvements

    Profiler性能改进
  • Memory Profiler: Allocation Tracking Options

    内存探查器:分配跟踪选项
  • Network Profiler: Formatted Text

    网络探查器:格式化文本
  • CPU Profiler: Frame Rendering Data

    CPU Profiler:帧渲染数据

Let’s look into some of the important features in detail.

让我们详细研究一些重要功能。

导航编辑器 (Navigation Editor)

This was available in the Android Studio Canary release before but was put on hold. It’s now finally available in a stable release.

之前,该版本在Android Studio Canary版本中可用,但已暂停。 现在终于可以在稳定版本中使用了。

Android Studio Navigation Editor Google

Android Studio Navigation Editor Google

Android Studio导航编辑器Google

We’ve already discussed and implemented Navigation Editor .

我们已经讨论和实现了导航编辑器。

新的Gradle插件 (New Gradle Plugin)

The latest plugin version 3.3.1 is here with the Gradle Version 4.10. It comes with decreased build time. It improves support for incremental Java compilation when using annotation processors.

最新的插件版本3.3.1与Gradle版本4.10在一起。 它减少了构建时间。 使用注释处理器时,它改进了对增量Java编译的支持。

新建项目向导 (New Project Wizard)

While creating a new application, there’s a different look of the project wizard and the activity template you choose.

创建新应用程序时,项目向导和您选择的活动模板的外观会有所不同。

You can select whether to use AndroidX or not as shown in the image below:

您可以选择是否使用AndroidX,如下图所示:

Android Studio Project Wizard

Android Studio Project Wizard

Android Studio项目向导

删除未使用的IDE目录 (Delete Unused IDE Directories)

In the past updates of Android Studio, it was difficult to locate and remove the caches, settings of old Android Studio versions. Now, when you update the IDE, it allows you to delete the older ones.

在过去的Android Studio更新中,很难找到和删除旧Android Studio版本的缓存和设置。 现在,当您更新IDE时,它允许您删除较旧的IDE。

自动下载SDK组件 (Automatic Downloading of SDK Components)

When syncing a project if there are some missing components, Gradle now automatically downloads them provided that you had permitted this.

同步项目时,如果缺少某些组件,Gradle现在会自动下载它们,前提是您允许这样做。

使用过时的API时更好的调试信息 (Better debug info when using obsolete APIs)

If your application is using obsolete APIs, Android Studio now provides more detailed debugging information on which part of your code is calling them. To enable this option, add the following line of code to a Gradle file:

如果您的应用程序使用的是过时的API,Android Studio现在会提供有关代码的哪一部分调用它们的更详细的调试信息。 要启用此选项,请将以下代码行添加到Gradle文件中:

android.debug.obsoleteApi = true.

单版本构建同步 (Single Variant Build Sync)

If your project is configured with multiple build variants you can configure the IDE to sync only the active build thus saving lots of time.

如果您的项目配置有多个构建变体,则可以将IDE配置为仅同步活动的构建,从而节省大量时间。

Android Studio Single Build Variant Sync

Android Studio Single Build Variant Sync

Android Studio单一版本变体同步

Android捆绑包的即时应用 (Instant Apps for Android Bundles)

You can now create Instant Apps for Android App Bundles.

您现在可以为Android应用程序捆绑包创建Instant Apps。

布局编辑器中的虚拟数据 (Dummy Data in Layout Editor)

You can now use Dummy Data in UI elements like by setting Design Time View Attributes as demonstrated in the GIF below:

现在,您可以通过设置“设计时视图属性”来在UI元素(如使用虚拟数据,如下面的GIF所示:

Android Studio 3 3 Sample Data Layout Editor

Android Studio 3 3 Sample Data Layout Editor

Android Studio 3 3示例数据布局编辑器

改进了对C / C ++的支持 (Improved Support for C/C++)

Not only can you create a C++ native module from the project wizard, but you also have support for Clang-Tidy. Android Studio now includes support for static code analysis using Clang-Tidy. To enable this feature, update your NDK to r18 or higher.

您不仅可以通过项目向导创建C ++本机模块,而且还支持Clang-Tidy 。 Android Studio现在支持使用Clang-Tidy进行静态代码分析。 要启用此功能,请将您的NDK更新到r18或更高版本。

CMake 3.10.2 is now available from the SDK Manager. We can include it in the build.gradle file using the following code:

可以从SDK Manager中获得CMake 3.10.2。 我们可以使用以下代码将其包含在build.gradle文件中:

android {    ...    externalNativeBuild {        cmake {            ...            version "3.10.2"        }    }}

R8 (R8)

Preview R8, a new code shrinker that also obfuscates the code. Add the following line in the gradle.properties file.

预览版R8,这是一种新的代码收缩器,它也使代码模糊。 在gradle.properties文件中添加以下行。

android.enableR8 = true

网络探查器 (Network Profiler)

Network Profile now includes formatted text for certain data like JSON, XML, and HTML. Previously, it only displayed raw data.

网络配置文件现在包括某些数据(如JSON,XML和HTML)的格式化文本。 以前,它仅显示原始数据。

切片 (Slices)

Slices provide a new way to embed portions of your app’s functionality in other user interface surfaces on Android. For example, Slices make it possible to show app functionality and content in Google Search Suggestions.

切片提供了一种将应用功能的一部分嵌入Android其他用户界面中的新方法。 例如,切片可以在Google搜索建议中显示应用功能和内容。

反馈屏幕 (Feedback Screen)

Last but not least, there’s a feedback screen at the bottom right to allow developers to send feedback.

最后但并非最不重要的一点是,右下角有一个反馈屏幕,允许开发人员发送反馈。

That brings an end to this tutorial. You can download Android Studio 3.3 from the official Download Page using this .

这样就结束了本教程。 您可以使用此从官方下载页面下载Android Studio 3.3。

翻译自:

转载地址:http://xvqzd.baihongyu.com/

你可能感兴趣的文章
阶段3 3.SpringMVC·_07.SSM整合案例_08.ssm整合之Spring整合MyBatis框架
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第2节 SpringBoot接口Http协议开发实战_9、SpringBoot基础HTTP其他提交方法请求实战...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第2节 SpringBoot接口Http协议开发实战_12、SpringBoot2.x文件上传实战...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第4节 Springboot2.0单元测试进阶实战和自定义异常处理_19、SpringBoot个性化启动banner设置debug日志...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第4节 Springboot2.0单元测试进阶实战和自定义异常处理_20、SpringBoot2.x配置全局异常实战...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第5节 SpringBoot部署war项目到tomcat9和启动原理讲解_23、SpringBoot2.x启动原理概述...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第4节 Springboot2.0单元测试进阶实战和自定义异常处理_21、SpringBoot2.x配置全局异常返回自定义页面...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第8节 数据库操作之整合Mybaties和事务讲解_32..SpringBoot2.x持久化数据方式介绍...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第8节 数据库操作之整合Mybaties和事务讲解_34、SpringBoot整合Mybatis实操和打印SQL语句...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第8节 数据库操作之整合Mybaties和事务讲解_35、事务介绍和常见的隔离级别,传播行为...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第9节 SpringBoot2.x整合Redis实战_40、Redis工具类封装讲解和实战...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第9节 SpringBoot2.x整合Redis实战_37、分布式缓存Redis介绍...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第10节 SpringBoot整合定时任务和异步任务处理_42、SpringBoot常用定时任务配置实战...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第9节 SpringBoot2.x整合Redis实战_39、SpringBoot2.x整合redis实战讲解...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第14节 高级篇幅之SpringBoot多环境配置_59、SpringBoot多环境配置介绍和项目实战...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第10节 SpringBoot整合定时任务和异步任务处理_41、SpringBoot定时任务schedule讲解...
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第10节 SpringBoot整合定时任务和异步任务处理_43、SpringBoot2.x异步任务实战(核心知识)...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_1_01课程简介
查看>>
小D课堂 - 零基础入门SpringBoot2.X到实战_第11节 Logback日志框架介绍和SpringBoot整合实战_45、SpringBoot2.x日志讲解和Logback配置实战...
查看>>
小D课堂 - 新版本微服务springcloud+Docker教程_1_02技术选型
查看>>