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框架,We can divide new features into following categories.
我們可以將新功能分為以下幾類。
Let’s look into some of the important features in detail.
讓我們詳細研究一些重要功能。
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版本中可用,但已暫停。 現在終于可以在穩定版本中使用了。
We’ve already discussed and implemented Navigation Editor here.
我們已經在這里討論和實現了導航編輯器。
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編譯的支持。
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,如下圖所示:
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。
When syncing a project if there are some missing components, Gradle now automatically downloads them provided that you had permitted this.
同步項目時,如果缺少某些組件,Gradle現在會自動下載它們,前提是您允許這樣做。
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.
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配置為僅同步活動的構建,從而節省大量時間。
You can now create Instant Apps for Android App Bundles.
您現在可以為Android應用程序捆綁包創建Instant Apps。
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所示:
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"}}
}
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 Profile now includes formatted text for certain data like JSON, XML, and HTML. Previously, it only displayed raw data.
網絡配置文件現在包括某些數據(如JSON,XML和HTML)的格式化文本。 以前,它僅顯示原始數據。
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搜索建議中顯示應用功能和內容。
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
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态