Android框架,Android Studio 3.3功能

 2023-11-19 阅读 18 评论 0

摘要: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是最新的穩定版本。 在本教程中,我們將討論此版本中可用的新功能

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)

Android框架,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最新版、 之前,該版本在Android Studio Canary版本中可用,但已暫停。 現在終于可以在穩定版本中使用了。

Android Studio Navigation Editor Google

Android Studio Navigation Editor Google

Android Studio導航編輯器Google

We’ve already discussed and implemented Navigation Editor here.

我們已經在這里討論和實現了導航編輯器。

新的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)

android studio、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 sdk、 在過去的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)

android studio3.5.2安裝教程?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 RecyclerView by setting Design Time View Attributes as demonstrated in the GIF below:

AndroidStudio改標題? 現在,您可以通過設置“設計時視圖屬性”來在UI元素(如RecyclerView)中使用虛擬數據,如下面的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)

Android之防火墻功能的實現?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的論壇功能, 切片提供了一種將應用功能的一部分嵌入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 link.

這樣就結束了本教程。 您可以使用此鏈接從官方下載頁面下載Android Studio 3.3。

Androidstudio安裝,翻譯自: https://www.journaldev.com/26234/android-studio-3-3-features

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/3/183278.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息